diff --git a/docs/catalog.json b/docs/catalog.json index 563ea3a..1d9fdb0 100644 --- a/docs/catalog.json +++ b/docs/catalog.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.0", "generated_at": "2023-01-23T19:36:31.829899Z", "invocation_id": "731b7ac4-8409-423b-8abe-8e1252f8e64c", "env": {}}, "nodes": {"seed.quickbooks_source_integration_tests.account_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_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_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_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_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": "character varying(100)", "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": "character varying(100)", "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_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_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_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": "integer", "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_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_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_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_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_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_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_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_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_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": "bigint", "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": "bigint", "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_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_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_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_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_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_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_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_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_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": "double precision", "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_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_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_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": "boolean", "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": "timestamp without time zone", "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_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": "bigint", "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": "character varying(100)", "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_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_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_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_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": "date", "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_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_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": "date", "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_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_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_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_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": "character varying(100)", "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": "character varying(100)", "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_integration_tests", "name": "vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__account", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "text", "index": 2, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"address_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "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": "text", "index": 9, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 10, "name": "total_amount", "comment": null}, "vendor_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "text", "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": "text", "index": 7, "name": "account_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 9, "name": "item_expense_customer_id", "comment": null}, "item_expense_billable_status": {"type": "integer", "index": 10, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "text", "index": 11, "name": "item_expense_class_id", "comment": null}, "amount": {"type": "double precision", "index": 12, "name": "amount", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "bill_payment_id": {"type": "text", "index": 3, "name": "bill_payment_id", "comment": null}, "source_relation": {"type": "character varying", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "text", "index": 1, "name": "bill_payment_id", "comment": null}, "check_bank_account_id": {"type": "text", "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": "text", "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": "text", "index": 11, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 12, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "character varying", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "text", "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": "text", "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}, "source_relation": {"type": "character varying", "index": 10, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 6, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "text", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "text", "index": 2, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 3, "name": "item_quantity", "comment": null}, "source_relation": {"type": "character varying", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_card_payment_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_card_payment_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "text", "index": 1, "name": "credit_memo_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "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": "text", "index": 6, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "text", "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": "text", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 5, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 6, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 7, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 8, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "text", "index": 9, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 10, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "source_relation": {"type": "character varying", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__customer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"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_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_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}, "source_relation": {"type": "character varying", "index": 9, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "text", "index": 1, "name": "deposit_id", "comment": null}, "account_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 10, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "text", "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": "text", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_class_id": {"type": "text", "index": 6, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "text", "index": 7, "name": "deposit_customer_id", "comment": null}, "source_relation": {"type": "character varying", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "text", "index": 1, "name": "estimate_id", "comment": null}, "class_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "text", "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": "text", "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": "text", "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}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "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": "text", "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": "text", "index": 10, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "text", "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}, "class_id": {"type": "text", "index": 15, "name": "class_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 16, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "character varying", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "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": "text", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 5, "name": "sales_item_item_id", "comment": null}, "sales_item_class_id": {"type": "text", "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": "text", "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": "text", "index": 14, "name": "bundle_id", "comment": null}, "account_id": {"type": "text", "index": 15, "name": "account_id", "comment": null}, "item_id": {"type": "text", "index": 16, "name": "item_id", "comment": null}, "source_relation": {"type": "character varying", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "class_id": {"type": "text", "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": "text", "index": 6, "name": "sales_item_item_id", "comment": null}, "item_id": {"type": "text", "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": "text", "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}, "source_relation": {"type": "character varying", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "payment_id": {"type": "text", "index": 2, "name": "payment_id", "comment": null}, "estimate_id": {"type": "text", "index": 3, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "source_relation": {"type": "character varying", "index": 5, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "text", "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": "text", "index": 4, "name": "income_account_id", "comment": null}, "asset_account_id": {"type": "text", "index": 5, "name": "asset_account_id", "comment": null}, "expense_account_id": {"type": "text", "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": "text", "index": 13, "name": "parent_item_id", "comment": null}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "text", "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": "text", "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}, "source_relation": {"type": "character varying", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "text", "index": 1, "name": "journal_entry_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "class_id": {"type": "text", "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": "text", "index": 11, "name": "vendor_id", "comment": null}, "source_relation": {"type": "character varying", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "text", "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": "text", "index": 5, "name": "receivable_account_id", "comment": null}, "deposit_to_account_id": {"type": "text", "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": "text", "index": 9, "name": "customer_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "character varying", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "text", "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": "text", "index": 6, "name": "invoice_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 7, "name": "credit_memo_id", "comment": null}, "source_relation": {"type": "character varying", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "text", "index": 1, "name": "purchase_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "doc_number": {"type": "text", "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": "text", "index": 11, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 15, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "text", "index": 1, "name": "purchase_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "text", "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": "text", "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": "text", "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": "text", "index": 10, "name": "item_expense_customer_id", "comment": null}, "item_expense_class_id": {"type": "text", "index": 11, "name": "item_expense_class_id", "comment": null}, "amount": {"type": "integer", "index": 12, "name": "amount", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_order", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_order_id": {"type": "text", "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": "text", "index": 3, "name": "custom_po_number", "comment": null}, "doc_number": {"type": "text", "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": "text", "index": 8, "name": "payable_account_id", "comment": null}, "vendor_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_order_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_order_id": {"type": "text", "index": 1, "name": "purchase_order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "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": "text", "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": "text", "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": "text", "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}, "source_relation": {"type": "character varying", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_order_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_order_id": {"type": "text", "index": 1, "name": "purchase_order_id", "comment": null}, "bill_id": {"type": "text", "index": 2, "name": "bill_id", "comment": null}, "purchase_id": {"type": "text", "index": 3, "name": "purchase_id", "comment": null}, "vendor_credit_id": {"type": "text", "index": 4, "name": "vendor_credit_id", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "source_relation": {"type": "character varying", "index": 6, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "text", "index": 1, "name": "refund_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "class_id": {"type": "text", "index": 5, "name": "class_id", "comment": null}, "deposit_to_account_id": {"type": "text", "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": "text", "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}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "text", "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": "text", "index": 5, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 6, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "text", "index": 7, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 8, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 9, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 10, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 11, "name": "sales_item_unit_price", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 12, "name": "sales_item_tax_code_id", "comment": null}, "source_relation": {"type": "character varying", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "text", "index": 1, "name": "sales_receipt_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "deposit_to_account_id": {"type": "text", "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": "text", "index": 7, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "class_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "text", "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": "text", "index": 5, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 6, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "text", "index": 7, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 8, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 9, "name": "sales_item_item_id", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 10, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 11, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 12, "name": "sales_item_unit_price", "comment": null}, "source_relation": {"type": "character varying", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__transfer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transfer_id": {"type": "text", "index": 1, "name": "transfer_id", "comment": null}, "amount": {"type": "integer", "index": 2, "name": "amount", "comment": null}, "from_account_id": {"type": "text", "index": 3, "name": "from_account_id", "comment": null}, "to_account_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "text", "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": "text", "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}, "source_relation": {"type": "character varying", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "text", "index": 1, "name": "vendor_credit_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "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": "text", "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": "text", "index": 12, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "text", "index": 1, "name": "vendor_credit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 3, "name": "account_expense_customer_id", "comment": null}, "account_expense_account_id": {"type": "text", "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": "text", "index": 7, "name": "account_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 8, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "text", "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": "text", "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}, "source_relation": {"type": "character varying", "index": 16, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_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": {"source.quickbooks_source.quickbooks.account": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.account"}, "source.quickbooks_source.quickbooks.address": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.address"}, "source.quickbooks_source.quickbooks.bill": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.bill"}, "source.quickbooks_source.quickbooks.bill_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.bill_line"}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.bill_linked_txn"}, "source.quickbooks_source.quickbooks.bill_payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.bill_payment"}, "source.quickbooks_source.quickbooks.bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.bill_payment_line"}, "source.quickbooks_source.quickbooks.bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.bundle"}, "source.quickbooks_source.quickbooks.bundle_item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.bundle_item"}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.credit_card_payment_txn"}, "source.quickbooks_source.quickbooks.credit_memo": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.credit_memo"}, "source.quickbooks_source.quickbooks.credit_memo_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.credit_memo_line"}, "source.quickbooks_source.quickbooks.customer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.customer"}, "source.quickbooks_source.quickbooks.department": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.department"}, "source.quickbooks_source.quickbooks.deposit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.deposit"}, "source.quickbooks_source.quickbooks.deposit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.deposit_line"}, "source.quickbooks_source.quickbooks.estimate": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.estimate"}, "source.quickbooks_source.quickbooks.estimate_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.estimate_line"}, "source.quickbooks_source.quickbooks.invoice": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.invoice"}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.invoice_line_bundle"}, "source.quickbooks_source.quickbooks.invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.invoice_line"}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.invoice_linked_txn"}, "source.quickbooks_source.quickbooks.item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.item"}, "source.quickbooks_source.quickbooks.journal_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.journal_entry"}, "source.quickbooks_source.quickbooks.journal_entry_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.journal_entry_line"}, "source.quickbooks_source.quickbooks.payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.payment"}, "source.quickbooks_source.quickbooks.payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.payment_line"}, "source.quickbooks_source.quickbooks.purchase": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.purchase"}, "source.quickbooks_source.quickbooks.purchase_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.purchase_line"}, "source.quickbooks_source.quickbooks.purchase_order": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.purchase_order"}, "source.quickbooks_source.quickbooks.purchase_order_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.purchase_order_line"}, "source.quickbooks_source.quickbooks.purchase_order_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.purchase_order_linked_txn"}, "source.quickbooks_source.quickbooks.refund_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.refund_receipt"}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.refund_receipt_line"}, "source.quickbooks_source.quickbooks.sales_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.sales_receipt"}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.sales_receipt_line"}, "source.quickbooks_source.quickbooks.transfer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.transfer"}, "source.quickbooks_source.quickbooks.vendor_credit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.vendor_credit"}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.vendor_credit_line"}, "source.quickbooks_source.quickbooks.vendor": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.vendor"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.0", "generated_at": "2023-01-24T23:35:12.243537Z", "invocation_id": "bedc06cb-d583-4e90-9e3f-9c4814934009", "env": {}}, "nodes": {"seed.quickbooks_source_integration_tests.account_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_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_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_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_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": "character varying(100)", "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": "character varying(100)", "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_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_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_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": "integer", "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_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_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_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_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_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_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_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_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_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": "bigint", "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": "bigint", "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_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_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_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_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_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_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_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_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_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": "double precision", "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_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_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_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": "boolean", "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": "timestamp without time zone", "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_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": "bigint", "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": "character varying(100)", "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_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_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_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_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": "date", "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_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_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": "date", "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_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_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_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_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": "character varying(100)", "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": "character varying(100)", "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_integration_tests", "name": "vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__account", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "text", "index": 2, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"address_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "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": "text", "index": 9, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 10, "name": "total_amount", "comment": null}, "vendor_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "text", "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": "text", "index": 7, "name": "account_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "text", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 9, "name": "item_expense_customer_id", "comment": null}, "item_expense_billable_status": {"type": "integer", "index": 10, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "text", "index": 11, "name": "item_expense_class_id", "comment": null}, "amount": {"type": "double precision", "index": 12, "name": "amount", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "text", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "bill_payment_id": {"type": "text", "index": 3, "name": "bill_payment_id", "comment": null}, "source_relation": {"type": "character varying", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "text", "index": 1, "name": "bill_payment_id", "comment": null}, "check_bank_account_id": {"type": "text", "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": "text", "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": "text", "index": 11, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 12, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "character varying", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "text", "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": "text", "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}, "source_relation": {"type": "character varying", "index": 10, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 6, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "text", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "text", "index": 2, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 3, "name": "item_quantity", "comment": null}, "source_relation": {"type": "character varying", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_card_payment_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_card_payment_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "text", "index": 1, "name": "credit_memo_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "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": "text", "index": 6, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "customer_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "text", "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": "text", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 5, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 6, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 7, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 8, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "text", "index": 9, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 10, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "source_relation": {"type": "character varying", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__customer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"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_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_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}, "source_relation": {"type": "character varying", "index": 9, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "text", "index": 1, "name": "deposit_id", "comment": null}, "account_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 10, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "text", "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": "text", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_class_id": {"type": "text", "index": 6, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "text", "index": 7, "name": "deposit_customer_id", "comment": null}, "source_relation": {"type": "character varying", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "text", "index": 1, "name": "estimate_id", "comment": null}, "class_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "text", "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": "text", "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": "text", "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}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "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": "text", "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": "text", "index": 10, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "text", "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}, "class_id": {"type": "text", "index": 15, "name": "class_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 16, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "character varying", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "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": "text", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 5, "name": "sales_item_item_id", "comment": null}, "sales_item_class_id": {"type": "text", "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": "text", "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": "text", "index": 14, "name": "bundle_id", "comment": null}, "account_id": {"type": "text", "index": 15, "name": "account_id", "comment": null}, "item_id": {"type": "text", "index": 16, "name": "item_id", "comment": null}, "source_relation": {"type": "character varying", "index": 17, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "class_id": {"type": "text", "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": "text", "index": 6, "name": "sales_item_item_id", "comment": null}, "item_id": {"type": "text", "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": "text", "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}, "source_relation": {"type": "character varying", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "payment_id": {"type": "text", "index": 2, "name": "payment_id", "comment": null}, "estimate_id": {"type": "text", "index": 3, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "source_relation": {"type": "character varying", "index": 5, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "text", "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": "text", "index": 4, "name": "income_account_id", "comment": null}, "asset_account_id": {"type": "text", "index": 5, "name": "asset_account_id", "comment": null}, "expense_account_id": {"type": "text", "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": "text", "index": 13, "name": "parent_item_id", "comment": null}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "text", "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": "text", "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}, "source_relation": {"type": "character varying", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "text", "index": 1, "name": "journal_entry_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "customer_id": {"type": "text", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "class_id": {"type": "text", "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": "text", "index": 11, "name": "vendor_id", "comment": null}, "source_relation": {"type": "character varying", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "text", "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": "text", "index": 5, "name": "receivable_account_id", "comment": null}, "deposit_to_account_id": {"type": "text", "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": "text", "index": 9, "name": "customer_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "character varying", "index": 11, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "text", "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": "text", "index": 6, "name": "invoice_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 7, "name": "credit_memo_id", "comment": null}, "source_relation": {"type": "character varying", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "text", "index": 1, "name": "purchase_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "doc_number": {"type": "text", "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": "text", "index": 11, "name": "customer_id", "comment": null}, "vendor_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 15, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "text", "index": 1, "name": "purchase_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "text", "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": "text", "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": "text", "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": "text", "index": 10, "name": "item_expense_customer_id", "comment": null}, "item_expense_class_id": {"type": "text", "index": 11, "name": "item_expense_class_id", "comment": null}, "amount": {"type": "integer", "index": 12, "name": "amount", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_order", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_order_id": {"type": "text", "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": "text", "index": 3, "name": "custom_po_number", "comment": null}, "doc_number": {"type": "text", "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": "text", "index": 8, "name": "payable_account_id", "comment": null}, "vendor_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_order_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_order_id": {"type": "text", "index": 1, "name": "purchase_order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "text", "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": "text", "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": "text", "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": "text", "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}, "source_relation": {"type": "character varying", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_order_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_order_id": {"type": "text", "index": 1, "name": "purchase_order_id", "comment": null}, "bill_id": {"type": "text", "index": 2, "name": "bill_id", "comment": null}, "purchase_id": {"type": "text", "index": 3, "name": "purchase_id", "comment": null}, "vendor_credit_id": {"type": "text", "index": 4, "name": "vendor_credit_id", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "source_relation": {"type": "character varying", "index": 6, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "text", "index": 1, "name": "refund_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "class_id": {"type": "text", "index": 5, "name": "class_id", "comment": null}, "deposit_to_account_id": {"type": "text", "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": "text", "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}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "text", "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": "text", "index": 5, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 6, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "text", "index": 7, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 8, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 9, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 10, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 11, "name": "sales_item_unit_price", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 12, "name": "sales_item_tax_code_id", "comment": null}, "source_relation": {"type": "character varying", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "text", "index": 1, "name": "sales_receipt_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "deposit_to_account_id": {"type": "text", "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": "text", "index": 7, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "class_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "text", "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": "text", "index": 5, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "text", "index": 6, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "text", "index": 7, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "text", "index": 8, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "text", "index": 9, "name": "sales_item_item_id", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 10, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 11, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 12, "name": "sales_item_unit_price", "comment": null}, "source_relation": {"type": "character varying", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__transfer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transfer_id": {"type": "text", "index": 1, "name": "transfer_id", "comment": null}, "amount": {"type": "integer", "index": 2, "name": "amount", "comment": null}, "from_account_id": {"type": "text", "index": 3, "name": "from_account_id", "comment": null}, "to_account_id": {"type": "text", "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}, "source_relation": {"type": "character varying", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"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_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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "text", "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": "text", "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}, "source_relation": {"type": "character varying", "index": 12, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "text", "index": 1, "name": "vendor_credit_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "text", "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": "text", "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": "text", "index": 12, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "name": "_fivetran_deleted", "comment": null}, "source_relation": {"type": "character varying", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"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_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "text", "index": 1, "name": "vendor_credit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_customer_id": {"type": "text", "index": 3, "name": "account_expense_customer_id", "comment": null}, "account_expense_account_id": {"type": "text", "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": "text", "index": 7, "name": "account_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "text", "index": 8, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "text", "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": "text", "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}, "source_relation": {"type": "character varying", "index": 16, "name": "source_relation", "comment": null}}, "stats": {"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_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_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_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": {"source.quickbooks_source.quickbooks.account": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.account"}, "source.quickbooks_source.quickbooks.address": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.address"}, "source.quickbooks_source.quickbooks.bill": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.bill"}, "source.quickbooks_source.quickbooks.bill_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.bill_line"}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.bill_linked_txn"}, "source.quickbooks_source.quickbooks.bill_payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.bill_payment"}, "source.quickbooks_source.quickbooks.bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.bill_payment_line"}, "source.quickbooks_source.quickbooks.bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.bundle"}, "source.quickbooks_source.quickbooks.bundle_item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.bundle_item"}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.credit_card_payment_txn"}, "source.quickbooks_source.quickbooks.credit_memo": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.credit_memo"}, "source.quickbooks_source.quickbooks.credit_memo_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.credit_memo_line"}, "source.quickbooks_source.quickbooks.customer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.customer"}, "source.quickbooks_source.quickbooks.department": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.department"}, "source.quickbooks_source.quickbooks.deposit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.deposit"}, "source.quickbooks_source.quickbooks.deposit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.deposit_line"}, "source.quickbooks_source.quickbooks.estimate": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.estimate"}, "source.quickbooks_source.quickbooks.estimate_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.estimate_line"}, "source.quickbooks_source.quickbooks.invoice": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.invoice"}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.invoice_line_bundle"}, "source.quickbooks_source.quickbooks.invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.invoice_line"}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.invoice_linked_txn"}, "source.quickbooks_source.quickbooks.item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.item"}, "source.quickbooks_source.quickbooks.journal_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.journal_entry"}, "source.quickbooks_source.quickbooks.journal_entry_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.journal_entry_line"}, "source.quickbooks_source.quickbooks.payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.payment"}, "source.quickbooks_source.quickbooks.payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.payment_line"}, "source.quickbooks_source.quickbooks.purchase": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.purchase"}, "source.quickbooks_source.quickbooks.purchase_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.purchase_line"}, "source.quickbooks_source.quickbooks.purchase_order": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.purchase_order"}, "source.quickbooks_source.quickbooks.purchase_order_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.purchase_order_line"}, "source.quickbooks_source.quickbooks.purchase_order_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.purchase_order_linked_txn"}, "source.quickbooks_source.quickbooks.refund_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.refund_receipt"}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.refund_receipt_line"}, "source.quickbooks_source.quickbooks.sales_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.sales_receipt"}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.sales_receipt_line"}, "source.quickbooks_source.quickbooks.transfer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.transfer"}, "source.quickbooks_source.quickbooks.vendor_credit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.vendor_credit"}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.vendor_credit_line"}, "source.quickbooks_source.quickbooks.vendor": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integrations_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": "source.quickbooks_source.quickbooks.vendor"}}, "errors": null} \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index 9a75559..97e021b 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v7.json", "dbt_version": "1.3.0", "generated_at": "2023-01-23T19:36:14.755395Z", "invocation_id": "731b7ac4-8409-423b-8abe-8e1252f8e64c", "env": {}, "project_id": "aa9386a7fba3fd9e54dc759cf0b5037c", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.quickbooks_source_integration_tests.bill_payment_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_payment_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.6049511, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_payment_data\""}, "seed.quickbooks_source_integration_tests.bundle_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bundle_data"], "unique_id": "seed.quickbooks_source_integration_tests.bundle_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.6127958, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bundle_data\""}, "seed.quickbooks_source_integration_tests.bill_payment_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_payment_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.6143732, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_payment_line_data\""}, "seed.quickbooks_source_integration_tests.payment_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "payment_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.payment_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.615905, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"payment_line_data\""}, "seed.quickbooks_source_integration_tests.vendor_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "vendor_data"], "unique_id": "seed.quickbooks_source_integration_tests.vendor_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.6175628, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_data\""}, "seed.quickbooks_source_integration_tests.address_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "address_data"], "unique_id": "seed.quickbooks_source_integration_tests.address_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.6190631, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"address_data\""}, "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_order_linked_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.620547, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_order_linked_txn_data\""}, "seed.quickbooks_source_integration_tests.invoice_line_bundle_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_line_bundle_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_bundle_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.622043, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_line_bundle_data\""}, "seed.quickbooks_source_integration_tests.invoice_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.6236749, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_data\""}, "seed.quickbooks_source_integration_tests.payment_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "payment_data"], "unique_id": "seed.quickbooks_source_integration_tests.payment_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.6251578, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"payment_data\""}, "seed.quickbooks_source_integration_tests.invoice_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.626629, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_line_data\""}, "seed.quickbooks_source_integration_tests.deposit_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "deposit_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.deposit_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.628277, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"deposit_line_data\""}, "seed.quickbooks_source_integration_tests.estimate_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "estimate_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.estimate_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.629753, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"estimate_line_data\""}, "seed.quickbooks_source_integration_tests.purchase_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.631232, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_data\""}, "seed.quickbooks_source_integration_tests.refund_receipt_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "refund_receipt_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.632705, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"refund_receipt_line_data\""}, "seed.quickbooks_source_integration_tests.credit_memo_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "credit_memo_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.6347258, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_memo_line_data\""}, "seed.quickbooks_source_integration_tests.bill_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.636214, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_data\""}, "seed.quickbooks_source_integration_tests.bill_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_linked_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.637714, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_linked_txn_data\""}, "seed.quickbooks_source_integration_tests.vendor_credit_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "vendor_credit_data"], "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.639176, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_credit_data\""}, "seed.quickbooks_source_integration_tests.customer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "customer_data"], "unique_id": "seed.quickbooks_source_integration_tests.customer_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.640807, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"customer_data\""}, "seed.quickbooks_source_integration_tests.estimate_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "estimate_data"], "unique_id": "seed.quickbooks_source_integration_tests.estimate_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.642268, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"estimate_data\""}, "seed.quickbooks_source_integration_tests.purchase_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.643743, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_line_data\""}, "seed.quickbooks_source_integration_tests.journal_entry_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "journal_entry_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.6452212, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"journal_entry_line_data\""}, "seed.quickbooks_source_integration_tests.journal_entry_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "journal_entry_data"], "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.646851, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"journal_entry_data\""}, "seed.quickbooks_source_integration_tests.bill_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.648318, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_line_data\""}, "seed.quickbooks_source_integration_tests.bundle_item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bundle_item_data"], "unique_id": "seed.quickbooks_source_integration_tests.bundle_item_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.64979, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bundle_item_data\""}, "seed.quickbooks_source_integration_tests.invoice_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_linked_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.651433, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_linked_txn_data\""}, "seed.quickbooks_source_integration_tests.account_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "account_data"], "unique_id": "seed.quickbooks_source_integration_tests.account_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.6528971, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"account_data\""}, "seed.quickbooks_source_integration_tests.purchase_order_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_order_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.654374, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_order_line_data\""}, "seed.quickbooks_source_integration_tests.transfer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "transfer_data"], "unique_id": "seed.quickbooks_source_integration_tests.transfer_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.655829, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"transfer_data\""}, "seed.quickbooks_source_integration_tests.purchase_order_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_order_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.6574552, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_order_data\""}, "seed.quickbooks_source_integration_tests.sales_receipt_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "sales_receipt_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.658922, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"sales_receipt_line_data\""}, "seed.quickbooks_source_integration_tests.vendor_credit_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "vendor_credit_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.66038, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_credit_line_data\""}, "seed.quickbooks_source_integration_tests.credit_card_payment_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "credit_card_payment_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.credit_card_payment_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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": "b841a2f9402ba5f52789b27002186dd63d63c303bce30c02aba104b787c048d6"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.661844, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_card_payment_txn_data\""}, "seed.quickbooks_source_integration_tests.credit_memo_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "credit_memo_data"], "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.66346, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_memo_data\""}, "seed.quickbooks_source_integration_tests.department_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "department_data"], "unique_id": "seed.quickbooks_source_integration_tests.department_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.664934, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"department_data\""}, "seed.quickbooks_source_integration_tests.item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "item_data"], "unique_id": "seed.quickbooks_source_integration_tests.item_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.666395, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"item_data\""}, "seed.quickbooks_source_integration_tests.sales_receipt_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "sales_receipt_data"], "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.667853, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"sales_receipt_data\""}, "seed.quickbooks_source_integration_tests.deposit_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "deposit_data"], "unique_id": "seed.quickbooks_source_integration_tests.deposit_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.669473, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"deposit_data\""}, "seed.quickbooks_source_integration_tests.refund_receipt_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "refund_receipt_data"], "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674171979.670939, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"refund_receipt_data\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as {{ dbt.type_string() }}) as journal_entry_id,\n index,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n amount,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n department_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "4a44ae6affd5281ee7cc64e05384fdb7ad18b15c18185cc970f9bd639bdf7a34"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line_tmp"], ["stg_quickbooks__journal_entry_line_tmp"]], "sources": [], "metrics": [], "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": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.796522, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as TEXT) as journal_entry_id,\n index,\n cast(account_id as TEXT) as account_id,\n amount,\n cast(customer_id as TEXT) as customer_id,\n department_id,\n cast(class_id as TEXT) as class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as TEXT) as vendor_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\""}, "model.quickbooks_source.stg_quickbooks__transfer": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_transfer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__transfer"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as transfer_id,\n amount,\n cast(from_account_id as {{ dbt.type_string() }}) as from_account_id,\n cast(to_account_id as {{ dbt.type_string() }}) as to_account_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "2e5aeff4520b116401c48251bf9a3f2db443857c8c8f7c07aaf5b41286878746"}, "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, "node_color": null}, "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": 1674171980.829252, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as transfer_id,\n amount,\n cast(from_account_id as TEXT) as from_account_id,\n cast(to_account_id as TEXT) as to_account_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as {{ dbt.type_string() }}) as bill_payment_id,\n index,\n amount,\n cast(bill_id as {{ dbt.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 source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "e0de0b712f688b7f8628fa17430dc3d700042e37a53783d3e8fc7ee0272a71db"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line_tmp"], ["stg_quickbooks__bill_payment_line_tmp"]], "sources": [], "metrics": [], "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": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.750321, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as TEXT) as bill_payment_id,\n index,\n amount,\n cast(bill_id as TEXT) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\""}, "model.quickbooks_source.stg_quickbooks__payment_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as {{ dbt.type_string() }}) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n credit_memo_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "62737fcbdd45af89bc14370b70f36cfbd94391602da7a6afb4dd97e4a1120429"}, "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, "node_color": null}, "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": 1674171980.8006, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as TEXT) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as TEXT) as invoice_id,\n credit_memo_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\""}, "model.quickbooks_source.stg_quickbooks__vendor": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor", "raw_code": "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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as {{ dbt.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 source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "6b6d5e653208581f032f6850766879795733912c64f11163419584210d386970"}, "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, "node_color": null}, "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": 1674171980.8382971, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as TEXT) 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 source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\""}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as {{ dbt.type_string() }}) as bundle_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "acc22a519a861cd717e417884b61bc191432e1c46a31ea8ebde689e6f4223177"}, "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, "node_color": null}, "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": 1674171980.7844648, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as TEXT) as bundle_id,\n cast(account_id as TEXT) as account_id,\n cast(item_id as TEXT) as item_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\""}, "model.quickbooks_source.stg_quickbooks__estimate": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as estimate_id,\n cast(class_id as {{ dbt.type_string() }}) as 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 source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "501fe174a3a77c1f92407b060600528ce9e3b198e143ab2985f5a0f0e9c95c70"}, "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, "node_color": null}, "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": 1674171980.7768419, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as estimate_id,\n cast(class_id as TEXT) as 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 source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as {{ dbt.type_string() }}) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "b7cf6d56a640a9f0700a3620a94fc61a422c8db6dfdbcbbb5939e0fd80c5a3b7"}, "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": "The identifier of the account associated with the credited refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the refunded item.", "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": "The identifier of the account associated with the income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount of the refunded item.", "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, "node_color": null}, "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": 1674171980.7633111, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as TEXT) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\""}, "model.quickbooks_source.stg_quickbooks__bundle": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at,\n source_relation\n\n from fields\n)\n\nselect * from final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "8e3f27ad4f72eb020a1c32b3654e9306ef2f878a0c52ac8356b695a0c03c2611"}, "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, "node_color": null}, "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": 1674171980.758375, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at,\n source_relation\n\n from fields\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\""}, "model.quickbooks_source.stg_quickbooks__department": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_department_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__department"], "unique_id": "model.quickbooks_source.stg_quickbooks__department", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\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 source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "61c0a5d8287b3e73bbee2986e1d0914da2cdc67a88534bd2be26264eb6e29a67"}, "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, "node_color": null}, "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": 1674171980.770334, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\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 source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\""}, "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_card_payment_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_card_payment_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn", "raw_code": "--To enable this model, set the using_invoice_bundle variable within your dbt_project.yml file to True.\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\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.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 source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "a8274053455a19f46f54111bac914dd48d1365ce550d73b051c8b22f9fafef0b"}, "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, "node_color": null}, "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": 1674171980.7607172, "compiled_code": "--To enable this model, set the using_invoice_bundle variable within your dbt_project.yml file to True.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_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 TIMESTAMP) 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 TEXT) 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\n \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) 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 source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_card_payment_txn\""}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line", "raw_code": "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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as {{ dbt.type_string() }}) as purchase_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id, \n account_expense_billable_status,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "1ffe50688ea656d1019565cd7238adef008dc1e1e7e97ba2048bb6c4628f873d"}, "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_class_id": {"name": "item_expense_class_id", "description": "The class id associated with 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, "node_color": null}, "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": 1674171980.805844, "compiled_code": "with base as (\n\n select *\n from \"postgres\".\"quickbooks_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as TEXT) as purchase_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id, \n account_expense_billable_status,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\""}, "model.quickbooks_source.stg_quickbooks__purchase": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase", "raw_code": "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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as purchase_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n created_at,\n cast(doc_number as {{ dbt.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.type_string() }}) as customer_id,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "cde15943157fb1be413075f3aa62e1670fb0e6bb5118ca59ea5f75f816487d4a"}, "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, "node_color": null}, "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": 1674171980.809004, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as purchase_id,\n cast(account_id as TEXT) as account_id,\n created_at,\n cast(doc_number as TEXT) 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 TEXT) as customer_id,\n cast(vendor_id as TEXT) as vendor_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as {{ dbt.type_string() }}) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id, \n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "6e468b38cb9d0067dad366c52ec5e366a4455ed5158fc38d6502f1520529cfe9"}, "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": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class id of the discount associated with the refunded item.", "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_class_id": {"name": "sales_item_class_id", "description": "Class id of the refunded item.", "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, "node_color": null}, "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": 1674171980.818859, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as TEXT) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id, \n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle_item"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as {{ dbt.type_string() }}) as bundle_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n item_quantity,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "c5e85a89debd33e5f789ef58fa05a1bf931b63a0451c0ab7d8f6b0b565895a4d"}, "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, "node_color": null}, "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": 1674171980.757035, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as TEXT) as bundle_id,\n cast(item_id as TEXT) as item_id,\n item_quantity,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\""}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as credit_memo_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "3757765d000c8762afea93869ab1ba6c3d5f22574c7b3d90cd91f4ecb894f85d"}, "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, "node_color": null}, "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": 1674171980.765886, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as credit_memo_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n cast(class_id as TEXT) as class_id,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\""}, "model.quickbooks_source.stg_quickbooks__purchase_order": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n transaction_date,\n status,\n due_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "697ef46b9a8ee1073daf25c393eca18697b1c95b1b57914e5a9cef8bd8adcca2"}, "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, "node_color": null}, "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": 1674171980.816076, "compiled_code": "--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_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 TEXT) 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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as TEXT) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as TEXT) as payable_account_id,\n cast(vendor_id as TEXT) as vendor_id,\n transaction_date,\n status,\n due_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "raw_code": "{{ 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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as {{ dbt.type_string() }}) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "050d2104a9f5c48e73b726f52bc9472987b3581193a9694bc6744324ba43b82b"}, "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": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class id of the discount credited to the sales line.", "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_class_id": {"name": "sales_item_class_id", "description": "Class id of the receipt 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, "node_color": null}, "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": 1674171980.824606, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as TEXT) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt", "raw_code": "{{ 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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as sales_receipt_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n created_at,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n department_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "42e250594a269ed1d23ffcce0276c23ce7304ebaf20e55336607dcda12c46dae"}, "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, "node_color": null}, "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": 1674171980.8277178, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as sales_receipt_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n created_at,\n cast(customer_id as TEXT) as customer_id,\n department_id,\n cast(class_id as TEXT) as class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\""}, "model.quickbooks_source.stg_quickbooks__purchase_order_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt.type_string() }}) as purchase_order_id,\n index,\n cast(account_expense_account_id as {{ dbt.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.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "a2b4b3ba47604cb6f1391043643e49168328c1ab7df52754f699748f11fa8888"}, "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, "node_color": null}, "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": 1674171980.8117912, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as TEXT) as purchase_order_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_line\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n cast(payment_id as {{ dbt.type_string() }}) as payment_id,\n cast(estimate_id as {{ dbt.type_string() }}) as estimate_id,\n index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "f2b779facddf42a3e62603a1254b1503c2b8a8f52dd69a27ed8a14625c1c5953"}, "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, "node_color": null}, "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": 1674171980.780923, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n cast(payment_id as TEXT) as payment_id,\n cast(estimate_id as TEXT) as estimate_id,\n index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__invoice": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as invoice_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n cast(billing_address_id as {{ dbt.type_string() }}) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "6d5a6ee2afa37a3567700cccf5831e3f27446303711dfaab707579d6c3ae4082"}, "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": []}, "class_id": {"name": "class_id", "description": "Reference to the class to which the invoice is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "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": 1674171980.790957, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as invoice_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as TEXT) as customer_id,\n cast(billing_address_id as TEXT) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n cast(class_id as TEXT) as class_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\""}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bill_payment_id,\n cast(check_bank_account_id as {{ dbt.type_string() }}) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as {{ dbt.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.type_string() }}) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "20561d9a7ab619d2b9872cdb42a90fc7ac99f8eb10715a5ab068f9856fbeb3b5"}, "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, "node_color": null}, "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": 1674171980.7531352, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as bill_payment_id,\n cast(check_bank_account_id as TEXT) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as TEXT) 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 TEXT) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line_bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n index,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n description,\n amount,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n unit_price,\n invoice_line_index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "0f971477ce0e36654a8571afaa3c4de0ca048b529a182bd4d63aa79874676719"}, "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": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Invoice 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, "node_color": null}, "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": 1674171980.7873821, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n index,\n cast(class_id as TEXT) as class_id,\n description,\n amount,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n cast(item_id as TEXT) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as TEXT) as account_id,\n unit_price,\n invoice_line_index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\""}, "model.quickbooks_source.stg_quickbooks__account": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__account"], "unique_id": "model.quickbooks_source.stg_quickbooks__account", "raw_code": "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\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as account_id,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as {{ dbt.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 source_relation\n from account\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "c363c2c2ed0bd1cdb52064560957c75ad004c3e727f72b5b1bc361e9d8ccf37a"}, "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.", "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, "node_color": null}, "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": 1674171980.741889, "compiled_code": "with base as (\n select *\n from \"postgres\".\"quickbooks_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\n \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as account_id,\n cast(account_number as TEXT) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as TEXT) 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 source_relation\n from account\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\""}, "model.quickbooks_source.stg_quickbooks__payment": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as {{ dbt.type_string() }}) as receivable_account_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "f8b0ad9217d505ec03b1868643d078257992cf4dc4a1b524cab1bc454aeb4a27"}, "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, "node_color": null}, "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": 1674171980.802979, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as TEXT) as receivable_account_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as TEXT) as customer_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\""}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as {{ dbt.type_string() }}) as estimate_id,\n index,\n description,\n discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "08e406854edfa3b633a1c7b434b2ee9e010a4e6c1bc49de7a37ef44c8d277451"}, "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, "node_color": null}, "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": 1674171980.779818, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as TEXT) as estimate_id,\n index,\n description,\n discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n index,\n cast(bill_payment_id as {{ dbt.type_string() }}) as bill_payment_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "aa0410b4e6baafc2e21269e6857ef88e84961b061e5007b0a7bb117c314f682d"}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn_tmp"], ["stg_quickbooks__bill_linked_txn_tmp"]], "sources": [], "metrics": [], "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": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.748093, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as TEXT) as bill_id,\n index,\n cast(bill_payment_id as TEXT) as bill_payment_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__address": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__address"], "unique_id": "model.quickbooks_source.stg_quickbooks__address", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.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 source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "df30cdfedd8bc9f3eb2e7e7e62f55f3c1d4e1ac0a53012e4e2b567c8d4f34d63"}, "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, "node_color": null}, "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": 1674171980.743521, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\""}, "model.quickbooks_source.stg_quickbooks__bill": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bill_id,\n balance,\n cast(doc_number as {{ dbt.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.type_string() }}) as payable_account_id,\n total_amount,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n private_note,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "fc4dc80f5295a1755ea41bcfd621db97343c27e09c1646d98c1d04c2cc30f418"}, "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, "node_color": null}, "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": 1674171980.756109, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as TEXT) as bill_id,\n balance,\n cast(doc_number as TEXT) 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 TEXT) as payable_account_id,\n total_amount,\n cast(vendor_id as TEXT) as vendor_id,\n private_note,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\""}, "model.quickbooks_source.stg_quickbooks__bill_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n item_expense_billable_status,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "d541cef41b0a6505a9ac44d9317a77d9b6addf43cb083219fb9c92a2c793f401"}, "tags": [], "refs": [["stg_quickbooks__bill_line_tmp"], ["stg_quickbooks__bill_line_tmp"]], "sources": [], "metrics": [], "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": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "The class reference associated with 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, "node_color": null}, "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": 1674171980.747138, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as TEXT) as bill_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n item_expense_billable_status,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\""}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "4f62753998ceb5f5764a9fba39a9fbd9fb87a16abf35090e50f2dd18eac58346"}, "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, "node_color": null}, "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": 1674171980.798788, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as TEXT) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as refund_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "5cd054048b45bd2245f33de53658e58c23bf8eabb8e4cfdcc096c915a977a834"}, "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, "node_color": null}, "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": 1674171980.82182, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as refund_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n cast(class_id as TEXT) as class_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\""}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as {{ dbt.type_string() }}) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as {{ dbt.type_string() }}) as deposit_account_id,\n cast(deposit_class_id as {{ dbt.type_string() }}) as deposit_class_id,\n cast(deposit_customer_id as {{ dbt.type_string() }}) as deposit_customer_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "f2f457f0503a22ec51d606aab2156f7534091b31840927c84bb5fc7a2d34c838"}, "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, "node_color": null}, "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": 1674171980.772056, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as TEXT) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as TEXT) as deposit_account_id,\n cast(deposit_class_id as TEXT) as deposit_class_id,\n cast(deposit_customer_id as TEXT) as deposit_customer_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as vendor_credit_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "bd2e5efc709f19666acabd4fdd2483c1013d05078dca5ff4ffb8a1975a4a9978"}, "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, "node_color": null}, "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": 1674171980.835705, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as vendor_credit_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as TEXT) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as TEXT) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as {{ dbt.type_string() }}) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n item_expense_billable_status,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "44764c7cbfb920e4b4c187299856d960ffdb9408d2e8dabc29c326c4c5e9f3c9"}, "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, "node_color": null}, "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": 1674171980.8327549, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as TEXT) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n item_expense_billable_status,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\""}, "model.quickbooks_source.stg_quickbooks__deposit": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as deposit_id,\n cast(account_id as {{ dbt.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 source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "3a8f91dd22dbe918fccedae73ae5a3e2db38a6344ac0a39d885ef49b149c89ce"}, "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, "node_color": null}, "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": 1674171980.7742589, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as deposit_id,\n cast(account_id as TEXT) 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 source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\""}, "model.quickbooks_source.stg_quickbooks__item": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__item"], "unique_id": "model.quickbooks_source.stg_quickbooks__item", "raw_code": "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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as {{ dbt.type_string() }}) as income_account_id,\n cast(asset_account_id as {{ dbt.type_string() }}) as asset_account_id,\n cast(expense_account_id as {{ dbt.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.type_string() }}) as parent_item_id,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "049dfdf58d6ee3ac495bb7f41562a880562a55f818a0fdfda3a14574f8dfc7ce"}, "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, "node_color": null}, "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": 1674171980.793921, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as TEXT) as income_account_id,\n cast(asset_account_id as TEXT) as asset_account_id,\n cast(expense_account_id as TEXT) 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 TEXT) as parent_item_id,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\""}, "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt.type_string() }}) as purchase_order_id,\n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n cast(purchase_id as {{ dbt.type_string() }}) as purchase_id,\n cast(vendor_credit_id as {{ dbt.type_string() }}) as vendor_credit_id,\n index,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "3e9cbee58cb2dab37c5798fd7a97954b3eae45670cc0288ce232394180fd1605"}, "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, "node_color": null}, "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": 1674171980.813196, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as TEXT) as purchase_order_id,\n cast(bill_id as TEXT) as bill_id,\n cast(purchase_id as TEXT) as purchase_id,\n cast(vendor_credit_id as TEXT) as vendor_credit_id,\n index,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__customer": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__customer"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer", "raw_code": "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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.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 source_relation\n\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "b896108565ae7c6d917878e5c8c6dd77f3fa89e61e4bda773ab8f06dc77ad7f3"}, "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, "node_color": null}, "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": 1674171980.768391, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) 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 source_relation\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor_credit"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='vendor_credit', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor_credit',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "135d5b0865e271c5d29187680f97b226b40b1c6c1e618f9d0818f0b7122dcfe6"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor_credit"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.4551091, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"vendor_credit_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.refund_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='refund_receipt_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='refund_receipt_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "b35b79d236200ea1e2d71df28d1d32dbc3d8ce93eb0c97fc2d502997e133055e"}, "tags": [], "refs": [], "sources": [["quickbooks", "refund_receipt_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.4687512, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"refund_receipt_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.estimate_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='estimate_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='estimate_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "e6b43f9598030c138d67898959d3bcc06d4b571b16bd790974c5bda4e90dfe18"}, "tags": [], "refs": [], "sources": [["quickbooks", "estimate_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.47472, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"estimate_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase_order_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "be4cdef26ee4b271e7c425130b4c3b80be45214b5be926af060d32331badcc0f"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.480246, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"purchase_order_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_memo_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='credit_memo_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_memo_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "877429c46bb2ccc5558c8577eda2444270a82e5e7717aec418fba450db743924"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_memo_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.485733, "compiled_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"credit_memo_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.journal_entry"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='journal_entry', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='journal_entry',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "4cc1a32910c8e5255f3d3bbe4578fb9f562e3f2fb56eff69e22f7f69b11fa32e"}, "tags": [], "refs": [], "sources": [["quickbooks", "journal_entry"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.491812, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"journal_entry_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_line_bundle"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_line_bundle', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_line_bundle',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "a2dc8302a76014fdede73acb185944cb3901457f568da00b9400dbadd61a4781"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_line_bundle"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.497349, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"invoice_line_bundle_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.payment"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='payment', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='payment',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "afe62d4646d63e7fc44dbe73ad04eb3af6f94e1fd98953cfdd5a5fae5464818f"}, "tags": [], "refs": [], "sources": [["quickbooks", "payment"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.503571, "compiled_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"payment_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "ec89045532e817aed8e8dc0a09e66f53a2c88aba038c7dcbbb51f6875d044f5d"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.5090718, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"invoice_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='deposit_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='deposit_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "2a560b4173366349cc88aa5c091b2f10c61f60c0bfe73b3b0f673877627002a4"}, "tags": [], "refs": [], "sources": [["quickbooks", "deposit_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.514472, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"deposit_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.customer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__customer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='customer', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='customer',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "2125a8e00af7bd53a1c2d0b414a756fa128457d4ecda78c77f813ba133a81325"}, "tags": [], "refs": [], "sources": [["quickbooks", "customer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.5199308, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"customer_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='bill_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "8f06919fa5048f09e127332ef0675a7fac11b3d0787e6672612010db4a7f6193"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.524917, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"bill_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='item', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='item',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "0db4c37e6bea881ee6f85348bc069b1ba7d74ce4fd550ed0ac643d4ef780ab79"}, "tags": [], "refs": [], "sources": [["quickbooks", "item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.53105, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"item_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\""}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__account_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='account', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='account',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "1157f7c518bf6f5e15bd9080fe829b06b7e3ddf59ea3e3a06164fe453e0def85"}, "tags": [], "refs": [], "sources": [["quickbooks", "account"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.536355, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"account_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_card_payment_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_card_payment_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_card_payment_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "b1910ce2b3a9463b6c4b232fa24e807de5c899a1d03dde1feef6bc43dbe8b3d6"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_card_payment_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.541574, "compiled_code": "--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"credit_card_payment_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_card_payment_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor_credit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='vendor_credit_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor_credit_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "38b9e05b27c7db52aa41fa740caa437895743d5de562b476917f75b55277debc"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor_credit_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.5471418, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"vendor_credit_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.department"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__department_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='department', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='department',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "ea310c765f23c51e6a2ef7bef84749f2a3fa89ac06b768173788080096354a00"}, "tags": [], "refs": [], "sources": [["quickbooks", "department"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.55252, "compiled_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"department_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bundle"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='bundle', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bundle',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "722d0a1b955a8c123522a87f6b97c8770d00365b98d1fc057d1724e9c5c06667"}, "tags": [], "refs": [], "sources": [["quickbooks", "bundle"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.55881, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"bundle_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bundle_item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='bundle_item', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bundle_item',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "29e60e9dfb0da56786a41a51e1f1d441ae47d0e7b43727f8a31af463d6daf588"}, "tags": [], "refs": [], "sources": [["quickbooks", "bundle_item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.564138, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"bundle_item_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase_order"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "a14f234fcfdc6777fe2bb8898ce79b14b45590d19bd6eab25d33ee95cc899bbd"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.570209, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"purchase_order_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='bill_payment_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_payment_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "914efeefeb70efc2b64e7bae87b298f93f419a08b170e06c3efb825f8eca1968"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_payment_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.575653, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"bill_payment_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.estimate"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='estimate', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='estimate',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "bd7a335748a13aae584ae7ee6a45b8565299cf7a48a0495be863920c797d83c6"}, "tags": [], "refs": [], "sources": [["quickbooks", "estimate"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.581784, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"estimate_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='purchase', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "1ad34ab2fb967805e5387b4dcf01716431d1008430faee53027f043466c3896d"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.58865, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"purchase_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_memo"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='credit_memo', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_memo',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "1bbda612f739f980fcf68562c4efbd39bbae1e1a37713c7bd5c4deecc24660f0"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_memo"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.593798, "compiled_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"credit_memo_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='bill', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "b579ba85c94cfa32fdb6fe9e65c2ee8e804c21417af340278c7370a7b9a31f2c"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.5993621, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"bill_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\""}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.transfer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__transfer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='transfer', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='transfer',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "e46216a5c817a4e27af2ac9a936e7e21dc89127c20a0775d7e21c63cbdb4e173"}, "tags": [], "refs": [], "sources": [["quickbooks", "transfer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.604691, "compiled_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"transfer_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='vendor', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "e106f714c2f307d3d50e99e8bd61cd4c03e96002006ce67191e182f2e1b19f7a"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.610195, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"vendor_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='purchase_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "39c7787a6481961b9d80bf3173afd5ece106fdb67bad2edbd69d436c6bbc3aca"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.616006, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"purchase_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.address"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__address_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='address', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='address',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "39a9820afa24c94b220f35fa72a0452806f5cdb828e5eb70583cded4ceb71454"}, "tags": [], "refs": [], "sources": [["quickbooks", "address"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.621136, "compiled_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"address_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='payment_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='payment_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "333d6ce9e2621c99b011bfbb668c38c1fe20d45a9e155278371ad1c5c19fffa3"}, "tags": [], "refs": [], "sources": [["quickbooks", "payment_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.6264598, "compiled_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"payment_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.refund_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='refund_receipt', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='refund_receipt',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "274dbd883a2adaf7559f8bc8812a558a95b52329f18218fe5494c63b7abcf7a5"}, "tags": [], "refs": [], "sources": [["quickbooks", "refund_receipt"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.6319098, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"refund_receipt_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.sales_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='sales_receipt', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='sales_receipt',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "bb64ce4afbe0e70f70d7c9dae8a57423d5ee7dc2326107fa4c5d4371ca911fce"}, "tags": [], "refs": [], "sources": [["quickbooks", "sales_receipt"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.6372669, "compiled_code": "\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"sales_receipt_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_payment"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='bill_payment', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_payment',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "f956078b3ec8d833f517f431c67509fe75f494b11a6fa4a735b85d232453dba4"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_payment"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.674378, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"bill_payment_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='journal_entry_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='journal_entry_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "bcba66ad0358646e9993b39ecdd17c69130874858cb027ed198364bb77a3d283"}, "tags": [], "refs": [], "sources": [["quickbooks", "journal_entry_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.6798232, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"journal_entry_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.deposit"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='deposit', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='deposit',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "e1f40c890b39fe0dd1bcec03c90b403c4e77015c805426b90ca3c3b1c93eb3b2"}, "tags": [], "refs": [], "sources": [["quickbooks", "deposit"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.685301, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"deposit_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='bill_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "2583068246d6617f1e99a3b11589211fb7cb90f66035526cee17be299ba826ec"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.690679, "compiled_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"bill_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "813acd5c2445c8886b2aa20afb05c5dc8165b9d38b3081b12a879e67abc67520"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.69612, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"invoice_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.sales_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='sales_receipt_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='sales_receipt_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "87037987bd00e48e0a7fe6300511bcf7c80031e6fe4ba3b77902a7baa5752132"}, "tags": [], "refs": [], "sources": [["quickbooks", "sales_receipt_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.7023702, "compiled_code": "\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"sales_receipt_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase_order_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "926409c011fa67fdcd598c4c0c21b87fb5dabe8654d46f0ee7caac0a028d5d99"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.707812, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"purchase_order_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='invoice', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "c901088fa713bc1e59f7299c7c7d6ac7aea71b7c97e5a2821fd8efd33214bfc1"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674171980.7131479, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"invoice_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\""}, "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.843999, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"quickbooks_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": {"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_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", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.845458, "compiled_code": "\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_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation", "alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29"}, "created_at": 1674171980.854592, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n group by account_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.861547, "compiled_code": "\n \n \n\n\n\nselect address_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["address_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__address')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation", "alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772"}, "created_at": 1674171980.862825, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n address_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\n group by address_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__address"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.866364, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1"}, "created_at": 1674171980.867651, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n group by bill_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.871414, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_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": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.873039, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_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": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.8743, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_payment_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614"}, "created_at": 1674171980.8755682, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_payment_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n group by bill_payment_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_payment_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.879314, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_payment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation", "alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec"}, "created_at": 1674171980.880588, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_payment_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n group by bill_payment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_payment"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.8841238, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation", "alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4"}, "created_at": 1674171980.885391, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n group by bill_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.889238, "compiled_code": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"quickbooks_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.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.890492, "compiled_code": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bundle_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation", "alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727"}, "created_at": 1674171980.8919418, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bundle_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\n group by bundle_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.8953001, "compiled_code": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["credit_memo_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858"}, "created_at": 1674171980.896724, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n credit_memo_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n group by credit_memo_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__credit_memo_line"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.900434, "compiled_code": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["credit_memo_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation", "alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083"}, "created_at": 1674171980.901715, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n credit_memo_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n group by credit_memo_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__credit_memo"}, "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.905209, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__customer')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation", "alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a"}, "created_at": 1674171980.906482, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n group by customer_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__customer"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.910026, "compiled_code": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["deposit_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b"}, "created_at": 1674171980.911298, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deposit_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n group by deposit_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__deposit_line"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.915043, "compiled_code": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["deposit_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation", "alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb"}, "created_at": 1674171980.916322, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deposit_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n group by deposit_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__deposit"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.919873, "compiled_code": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["estimate_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation", "alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68"}, "created_at": 1674171980.921153, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n estimate_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\n group by estimate_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__estimate"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.924696, "compiled_code": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["estimate_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a"}, "created_at": 1674171980.925971, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n estimate_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\"\n group by estimate_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__estimate_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.929714, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_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": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.931139, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0"}, "created_at": 1674171980.9324129, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n group by invoice_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.936136, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "index", "invoice_line_index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line_bundle')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation", "alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a"}, "created_at": 1674171980.937419, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, index, invoice_line_index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\n group by invoice_id, index, invoice_line_index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice_line_bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.9416761, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation", "alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c"}, "created_at": 1674171980.942952, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n group by invoice_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice"}, "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.94648, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["item_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__item')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation", "alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5"}, "created_at": 1674171980.94776, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n item_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n group by item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__item"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.9512808, "compiled_code": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"quickbooks_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": {"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_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", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.9525561, "compiled_code": "\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_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["journal_entry_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee"}, "created_at": 1674171980.9560509, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n journal_entry_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n group by journal_entry_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.959775, "compiled_code": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"quickbooks_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": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.961047, "compiled_code": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["payment_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__payment_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625"}, "created_at": 1674171980.9623208, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n payment_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n group by payment_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__payment_line"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.9660742, "compiled_code": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["payment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__payment')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation", "alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557"}, "created_at": 1674171980.967506, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n payment_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n group by payment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__payment"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.9708722, "compiled_code": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153"}, "created_at": 1674171980.9723048, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n group by purchase_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.976041, "compiled_code": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"quickbooks_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": {"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_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", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.977335, "compiled_code": "\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_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation", "alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563"}, "created_at": 1674171980.9810162, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n group by purchase_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.984498, "compiled_code": "\n \n \n\n\n\nselect purchase_order_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943"}, "created_at": 1674171980.985781, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_order_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_line\"\n group by purchase_order_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_order_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.989771, "compiled_code": "\n \n \n\n\n\nselect purchase_order_id\nfrom \"postgres\".\"quickbooks_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.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.991093, "compiled_code": "\n \n \n\n\n\nselect purchase_order_id\nfrom \"postgres\".\"quickbooks_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": {"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_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", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171980.992388, "compiled_code": "\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_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation", "alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d"}, "created_at": 1674171980.996508, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_order_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order\"\n group by purchase_order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171981.000242, "compiled_code": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576"}, "created_at": 1674171981.001602, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n group by refund_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__refund_receipt_line"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171981.0061598, "compiled_code": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation", "alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605"}, "created_at": 1674171981.0075011, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n group by refund_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__refund_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171981.0112839, "compiled_code": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sales_receipt_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899"}, "created_at": 1674171981.012579, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sales_receipt_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n group by sales_receipt_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__sales_receipt_line"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171981.017282, "compiled_code": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sales_receipt_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation", "alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d"}, "created_at": 1674171981.0187259, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sales_receipt_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n group by sales_receipt_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__sales_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171981.0230122, "compiled_code": "\n \n \n\n\n\nselect transfer_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transfer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__transfer')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation", "alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233"}, "created_at": 1674171981.024411, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transfer_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\n group by transfer_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__transfer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["vendor_credit_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor_credit_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b"}, "created_at": 1674171981.028634, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n vendor_credit_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n group by vendor_credit_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__vendor_credit_line"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171981.032886, "compiled_code": "\n \n \n\n\n\nselect vendor_credit_id\nfrom \"postgres\".\"quickbooks_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.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674171981.034243, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"quickbooks_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"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["vendor_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation", "alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4"}, "created_at": 1674171981.035755, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n vendor_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n group by vendor_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__vendor"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"fqn": ["quickbooks_source", "quickbooks", "account"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.account", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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.", "columns": {"id": {"name": "id", "description": "Unique identifier of the 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 creation date for the account.", "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_integrations_tests\".\"account_data\"", "created_at": 1674171981.160185}, "source.quickbooks_source.quickbooks.address": {"fqn": ["quickbooks_source", "quickbooks", "address"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.address", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 of the 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_integrations_tests\".\"address_data\"", "created_at": 1674171981.160314}, "source.quickbooks_source.quickbooks.bill_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "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": "Reference to the class 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": "Reference to the customer 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": "Reference to the item with the item based expense bill 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 bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer 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 identifier of the account associated with 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_integrations_tests\".\"bill_line_data\"", "created_at": 1674171981.1604118}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "bill_linked_txn"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "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_integrations_tests\".\"bill_linked_txn_data\"", "created_at": 1674171981.1604962}, "source.quickbooks_source.quickbooks.bill_payment_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "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_integrations_tests\".\"bill_payment_line_data\"", "created_at": 1674171981.160585}, "source.quickbooks_source.quickbooks.bill_payment": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with the credited bill payment. 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": "The identifier of the account associated with the credited bill payment. 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 the department 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_integrations_tests\".\"bill_payment_data\"", "created_at": 1674171981.1606772}, "source.quickbooks_source.quickbooks.bill": {"fqn": ["quickbooks_source", "quickbooks", "bill"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with 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_integrations_tests\".\"bill_data\"", "created_at": 1674171981.160769}, "source.quickbooks_source.quickbooks.bundle_item": {"fqn": ["quickbooks_source", "quickbooks", "bundle_item"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle_item", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 bundle 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_integrations_tests\".\"bundle_item_data\"", "created_at": 1674171981.1608498}, "source.quickbooks_source.quickbooks.bundle": {"fqn": ["quickbooks_source", "quickbooks", "bundle"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 creation date for the bundle.", "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_integrations_tests\".\"bundle_data\"", "created_at": 1674171981.160932}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"fqn": ["quickbooks_source", "quickbooks", "credit_card_payment_txn"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_card_payment_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with the bank 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": "The identifier of the account associated with the credit card which the 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_integrations_tests\".\"credit_card_payment_txn_data\"", "created_at": 1674171981.1610198}, "source.quickbooks_source.quickbooks.credit_memo_line": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item 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": "The identifier of the account associated with a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated 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_integrations_tests\".\"credit_memo_line_data\"", "created_at": 1674171981.161109}, "source.quickbooks_source.quickbooks.credit_memo": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 of the 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_integrations_tests\".\"credit_memo_data\"", "created_at": 1674171981.161203}, "source.quickbooks_source.quickbooks.customer": {"fqn": ["quickbooks_source", "quickbooks", "customer"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.customer", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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_integrations_tests\".\"customer_data\"", "created_at": 1674171981.161292}, "source.quickbooks_source.quickbooks.department": {"fqn": ["quickbooks_source", "quickbooks", "department"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.department", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 creation date for the department.", "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_integrations_tests\".\"department_data\"", "created_at": 1674171981.1613781}, "source.quickbooks_source.quickbooks.deposit_line": {"fqn": ["quickbooks_source", "quickbooks", "deposit_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 associated the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "The identifier of the account associated with the credited deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Reference to the customer associated with the credited deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"deposit_line_data\"", "created_at": 1674171981.161462}, "source.quickbooks_source.quickbooks.deposit": {"fqn": ["quickbooks_source", "quickbooks", "deposit"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the deposit.", "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_integrations_tests\".\"deposit_data\"", "created_at": 1674171981.16155}, "source.quickbooks_source.quickbooks.estimate": {"fqn": ["quickbooks_source", "quickbooks", "estimate"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 creation date for the estimate.", "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_integrations_tests\".\"estimate_data\"", "created_at": 1674171981.1616378}, "source.quickbooks_source.quickbooks.estimate_line": {"fqn": ["quickbooks_source", "quickbooks", "estimate_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of 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": "The identifier of 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": "The identifier of the account associated 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_integrations_tests\".\"estimate_line_data\"", "created_at": 1674171981.161728}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "invoice_linked_txn"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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_integrations_tests\".\"invoice_linked_txn_data\"", "created_at": 1674171981.161872}, "source.quickbooks_source.quickbooks.invoice_line": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with 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": "The identifier of the account associated for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with 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": "The identifier of 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_integrations_tests\".\"invoice_line_data\"", "created_at": 1674171981.161972}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line_bundle"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Invoice 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 item for sales 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": "The identifier of 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_integrations_tests\".\"invoice_line_bundle_data\"", "created_at": 1674171981.16206}, "source.quickbooks_source.quickbooks.invoice": {"fqn": ["quickbooks_source", "quickbooks", "invoice"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated 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": "Reference to the customer 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": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice.", "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_integrations_tests\".\"invoice_data\"", "created_at": 1674171981.162152}, "source.quickbooks_source.quickbooks.item": {"fqn": ["quickbooks_source", "quickbooks", "item"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.item", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 creation date for the item within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "The identifier of the account associated with the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "The identifier of the account associated with the inventory asset that tracks its current value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "The identifier of the account associated 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_integrations_tests\".\"item_data\"", "created_at": 1674171981.162241}, "source.quickbooks_source.quickbooks.journal_entry_line": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with the credited journal entry.", "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": "Reference to the customer associated with the credited journal entry.", "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 associated with the journal entry.", "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_integrations_tests\".\"journal_entry_line_data\"", "created_at": 1674171981.1623292}, "source.quickbooks_source.quickbooks.journal_entry": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 creation date for the journal entry.", "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_integrations_tests\".\"journal_entry_data\"", "created_at": 1674171981.162414}, "source.quickbooks_source.quickbooks.payment_line": {"fqn": ["quickbooks_source", "quickbooks", "payment_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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_integrations_tests\".\"payment_line_data\"", "created_at": 1674171981.1625001}, "source.quickbooks_source.quickbooks.payment": {"fqn": ["quickbooks_source", "quickbooks", "payment"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with the deposit 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 the customer associated with the payment.", "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_integrations_tests\".\"payment_data\"", "created_at": 1674171981.1625862}, "source.quickbooks_source.quickbooks.purchase_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with the credited purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class 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": "Reference to the item associated with the item based expense purchase 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 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_integrations_tests\".\"purchase_line_data\"", "created_at": 1674171981.1626759}, "source.quickbooks_source.quickbooks.purchase": {"fqn": ["quickbooks_source", "quickbooks", "purchase"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with the applied purchase based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the purchase.", "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 associated with the purchase.", "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_integrations_tests\".\"purchase_data\"", "created_at": 1674171981.1627672}, "source.quickbooks_source.quickbooks.purchase_order_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with the credited purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class 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": "Reference to the customer 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": "Reference to the item 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": "Reference to the customer 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_integrations_tests\".\"purchase_order_line_data\"", "created_at": 1674171981.162854}, "source.quickbooks_source.quickbooks.purchase_order_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_linked_txn"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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_integrations_tests\".\"purchase_order_linked_txn_data\"", "created_at": 1674171981.162933}, "source.quickbooks_source.quickbooks.purchase_order": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 associated with 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": []}, "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": "The identifier of the account associated with the credited purchase order.", "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_integrations_tests\".\"purchase_order_data\"", "created_at": 1674171981.1630578}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with the income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount of the refunded item.", "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": "The identifier of the account associated with the credited refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with 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_integrations_tests\".\"refund_receipt_line_data\"", "created_at": 1674171981.163148}, "source.quickbooks_source.quickbooks.refund_receipt": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 associated with the refund receipt.", "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": "The identifier of the account associated with which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with 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_integrations_tests\".\"refund_receipt_data\"", "created_at": 1674171981.1632378}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount credited to the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the sales 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 receipt credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with 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_integrations_tests\".\"sales_receipt_line_data\"", "created_at": 1674171981.1633291}, "source.quickbooks_source.quickbooks.sales_receipt": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with where payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated sales receipt 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 associated 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_integrations_tests\".\"sales_receipt_data\"", "created_at": 1674171981.16342}, "source.quickbooks_source.quickbooks.transfer": {"fqn": ["quickbooks_source", "quickbooks", "transfer"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.transfer", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with where the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "The identifier of the account associated with where 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_integrations_tests\".\"transfer_data\"", "created_at": 1674171981.1635032}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with 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": "Reference to the customer associated with the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class 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": "Reference to the customer associated with the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item 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_integrations_tests\".\"vendor_credit_line_data\"", "created_at": 1674171981.163595}, "source.quickbooks_source.quickbooks.vendor_credit": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 creation date for the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with 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_integrations_tests\".\"vendor_credit_data\"", "created_at": 1674171981.1636832}, "source.quickbooks_source.quickbooks.vendor": {"fqn": ["quickbooks_source", "quickbooks", "vendor"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 creation date for the vendor.", "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_integrations_tests\".\"vendor_data\"", "created_at": 1674171981.163769}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.566607, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.5669491, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.567107, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.5672581, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.567415, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"unique_id": "macro.dbt_postgres.postgres__get_catalog", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n\n {%- call statement('catalog', fetch_result=True) -%}\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n\n where (\n {%- for schema in schemas -%}\n upper(sch.nspname) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table, [m]aterialized view\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.569097, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"unique_id": "macro.dbt_postgres.postgres_get_relations", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "name": "postgres_get_relations", "macro_sql": "{% macro postgres_get_relations () -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.570184, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"unique_id": "macro.dbt_postgres.postgres__create_table_as", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.5785658, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.579296, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"unique_id": "macro.dbt_postgres.postgres__create_schema", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.5797591, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"unique_id": "macro.dbt_postgres.postgres__drop_schema", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.5802162, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.580909, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.581455, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"unique_id": "macro.dbt_postgres.postgres__information_schema_name", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.581706, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"unique_id": "macro.dbt_postgres.postgres__list_schemas", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.5822132, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.582885, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.584159, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.584438, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.584895, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.5852811, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"unique_id": "macro.dbt_postgres.postgres_escape_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.585897, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.586219, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.5870972, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.587392, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"unique_id": "macro.dbt_postgres.postgres__copy_grants", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.587554, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "name": "postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.5882728, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "name": "postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.5893602, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"unique_id": "macro.dbt_postgres.postgres__dateadd", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.589756, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"unique_id": "macro.dbt_postgres.postgres__listagg", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.590729, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"unique_id": "macro.dbt_postgres.postgres__datediff", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.5955021, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"unique_id": "macro.dbt_postgres.postgres__any_value", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.595819, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"unique_id": "macro.dbt_postgres.postgres__last_day", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.5966122, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"unique_id": "macro.dbt_postgres.postgres__split_part", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.597279, "supported_languages": null}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.5988889, "supported_languages": null}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.599186, "supported_languages": null}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.599388, "supported_languages": null}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.599585, "supported_languages": null}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.59978, "supported_languages": null}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.600385, "supported_languages": null}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.600812, "supported_languages": null}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.601244, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.601932, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.602319, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.607287, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.607578, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6079109, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.608961, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.609196, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6094441, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n select {{ check_cols_config | join(', ') }} from ({{ node['compiled_code'] }}) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.611437, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.613353, "supported_languages": null}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.618955, "supported_languages": null}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.619354, "supported_languages": null}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.619585, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.619711, "supported_languages": null}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.619911, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.620074, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6203651, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.621637, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.621902, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.622257, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6228638, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.631469, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.634461, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.635169, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6356091, "supported_languages": null}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.636213, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.636758, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.639046, "supported_languages": null}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.63983, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.640786, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"unique_id": "macro.dbt.get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.641122, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"unique_id": "macro.dbt.default__get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6421409, "supported_languages": null}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.648372, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.650781, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6511202, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last }}\n {% endfor %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6521652, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6525471, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.653474, "supported_languages": null}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.654457, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"unique_id": "macro.dbt.get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.655738, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"unique_id": "macro.dbt.default__get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.656072, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.656343, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.656716, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"unique_id": "macro.dbt.get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.656978, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"unique_id": "macro.dbt.default__get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.657351, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.657609, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"predicates\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6579819, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"unique_id": "macro.dbt.get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6582441, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"unique_id": "macro.dbt.default__get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.658453, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"unique_id": "macro.dbt.get_insert_into_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6588402, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6658401, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.673485, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.675232, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6769412, "supported_languages": null}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6781702, "supported_languages": null}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6818528, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.682654, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6829162, "supported_languages": null}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.683525, "supported_languages": null}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.684115, "supported_languages": null}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.687806, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6883168, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.688629, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.690827, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.691411, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6916401, "supported_languages": null}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.691901, "supported_languages": null}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.6922638, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparision later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.69696, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.703792, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.705076, "supported_languages": null}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.705406, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.706086, "supported_languages": null}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.706356, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.706537, "supported_languages": null}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7067342, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7068899, "supported_languages": null}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.707113, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.707277, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.707952, "supported_languages": null}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.708211, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.710013, "supported_languages": null}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.710641, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.710969, "supported_languages": null}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.711765, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.712136, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.712538, "supported_languages": null}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.713165, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7135239, "supported_languages": null}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.714085, "supported_languages": null}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.714586, "supported_languages": null}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.715013, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.715887, "supported_languages": null}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.718032, "supported_languages": null}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.718949, "supported_languages": null}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7193651, "supported_languages": null}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.721952, "supported_languages": null}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.723639, "supported_languages": null}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.724704, "supported_languages": null}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7250292, "supported_languages": null}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7254431, "supported_languages": null}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.725547, "supported_languages": null}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.726088, "supported_languages": null}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.726316, "supported_languages": null}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7267451, "supported_languages": null}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.726914, "supported_languages": null}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.727361, "supported_languages": null}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.727511, "supported_languages": null}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.728071, "supported_languages": null}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7283, "supported_languages": null}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7287009, "supported_languages": null}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.72881, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.729266, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.72946, "supported_languages": null}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7299562, "supported_languages": null}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.730232, "supported_languages": null}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.731182, "supported_languages": null}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.731752, "supported_languages": null}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7323048, "supported_languages": null}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.732533, "supported_languages": null}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.733013, "supported_languages": null}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7332082, "supported_languages": null}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.733654, "supported_languages": null}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.733877, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.734304, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.734529, "supported_languages": null}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7349591, "supported_languages": null}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.735103, "supported_languages": null}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.735592, "supported_languages": null}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.735778, "supported_languages": null}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7362041, "supported_languages": null}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7363431, "supported_languages": null}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.737708, "supported_languages": null}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.737921, "supported_languages": null}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.73823, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7384489, "supported_languages": null}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.738678, "supported_languages": null}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7388868, "supported_languages": null}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.739119, "supported_languages": null}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.739365, "supported_languages": null}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.739594, "supported_languages": null}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.73981, "supported_languages": null}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7400372, "supported_languages": null}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7402408, "supported_languages": null}, "macro.dbt.type_boolean": {"unique_id": "macro.dbt.type_boolean", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.740462, "supported_languages": null}, "macro.dbt.default__type_boolean": {"unique_id": "macro.dbt.default__type_boolean", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.740661, "supported_languages": null}, "macro.dbt.array_concat": {"unique_id": "macro.dbt.array_concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.741143, "supported_languages": null}, "macro.dbt.default__array_concat": {"unique_id": "macro.dbt.default__array_concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7413309, "supported_languages": null}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7417579, "supported_languages": null}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7419012, "supported_languages": null}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7424588, "supported_languages": null}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.742831, "supported_languages": null}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.743039, "supported_languages": null}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7438452, "supported_languages": null}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.744076, "supported_languages": null}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "_split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.744479, "supported_languages": null}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.74495, "supported_languages": null}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.74513, "supported_languages": null}, "macro.dbt.array_construct": {"unique_id": "macro.dbt.array_construct", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.745732, "supported_languages": null}, "macro.dbt.default__array_construct": {"unique_id": "macro.dbt.default__array_construct", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.746069, "supported_languages": null}, "macro.dbt.array_append": {"unique_id": "macro.dbt.array_append", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7465448, "supported_languages": null}, "macro.dbt.default__array_append": {"unique_id": "macro.dbt.default__array_append", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7467341, "supported_languages": null}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.747333, "supported_languages": null}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.747591, "supported_languages": null}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7478132, "supported_languages": null}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.748065, "supported_languages": null}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.748801, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.749015, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7492101, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.749351, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"unique_id": "macro.dbt.current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.749583, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.749683, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.74992, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.75015, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.750868, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.751147, "supported_languages": null}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.751372, "supported_languages": null}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.751938, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.756521, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7567601, "supported_languages": null}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.757076, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.757487, "supported_languages": null}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7578292, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.758284, "supported_languages": null}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7585359, "supported_languages": null}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.758838, "supported_languages": null}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7590919, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7593129, "supported_languages": null}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.759595, "supported_languages": null}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.759991, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.760345, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.761131, "supported_languages": null}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.761549, "supported_languages": null}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.76175, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.762023, "supported_languages": null}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7627, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.763294, "supported_languages": null}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.765642, "supported_languages": null}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.765803, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.766038, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7661922, "supported_languages": null}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7666728, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.766934, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7670772, "supported_languages": null}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.767391, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.767655, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.767972, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.768235, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.768555, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.769506, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.76985, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.770199, "supported_languages": null}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.770528, "supported_languages": null}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.772151, "supported_languages": null}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.773186, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.773428, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7737129, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.773953, "supported_languages": null}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.774335, "supported_languages": null}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7750242, "supported_languages": null}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.777164, "supported_languages": null}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7775412, "supported_languages": null}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.777805, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.778021, "supported_languages": null}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.778275, "supported_languages": null}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.778622, "supported_languages": null}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.77891, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.779328, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7795892, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.779819, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.782201, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.782519, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.782955, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.78321, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7836878, "supported_languages": null}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.784016, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.784874, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7852402, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7863522, "supported_languages": null}, "macro.dbt.build_ref_function": {"unique_id": "macro.dbt.build_ref_function", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {%- set resolved = ref(*_ref) -%}\n {%- do ref_dict.update({_ref | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef ref(*args,dbt_load_df_function):\n refs = {{ ref_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.788437, "supported_languages": null}, "macro.dbt.build_source_function": {"unique_id": "macro.dbt.build_source_function", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.789109, "supported_languages": null}, "macro.dbt.build_config_dict": {"unique_id": "macro.dbt.build_config_dict", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {%- for key in model.config.config_keys_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == 'language' -%}\n {%- set value = 'python' -%}\n {%- endif -%}\n {%- set value = model.config[key] -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.789747, "supported_languages": null}, "macro.dbt.py_script_postfix": {"unique_id": "macro.dbt.py_script_postfix", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = '{{ this.database }}'\n schema = '{{ this.schema }}'\n identifier = '{{ this.identifier }}'\n def __repr__(self):\n return '{{ this }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args: ref(*args, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.790348, "supported_languages": null}, "macro.dbt.py_script_comment": {"unique_id": "macro.dbt.py_script_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7904482, "supported_languages": null}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.791232, "supported_languages": null}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7915552, "supported_languages": null}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.791959, "supported_languages": null}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.792345, "supported_languages": null}, "macro.dbt_utils.except": {"unique_id": "macro.dbt_utils.except", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.792781, "supported_languages": null}, "macro.dbt_utils.default__except": {"unique_id": "macro.dbt_utils.default__except", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.792889, "supported_languages": null}, "macro.dbt_utils.bigquery__except": {"unique_id": "macro.dbt_utils.bigquery__except", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.79299, "supported_languages": null}, "macro.dbt_utils.replace": {"unique_id": "macro.dbt_utils.replace", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7935429, "supported_languages": null}, "macro.dbt_utils.default__replace": {"unique_id": "macro.dbt_utils.default__replace", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7940412, "supported_languages": null}, "macro.dbt_utils.concat": {"unique_id": "macro.dbt_utils.concat", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7944808, "supported_languages": null}, "macro.dbt_utils.default__concat": {"unique_id": "macro.dbt_utils.default__concat", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.79465, "supported_languages": null}, "macro.dbt_utils.type_string": {"unique_id": "macro.dbt_utils.type_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.795667, "supported_languages": null}, "macro.dbt_utils.default__type_string": {"unique_id": "macro.dbt_utils.default__type_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.795771, "supported_languages": null}, "macro.dbt_utils.redshift__type_string": {"unique_id": "macro.dbt_utils.redshift__type_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.795872, "supported_languages": null}, "macro.dbt_utils.postgres__type_string": {"unique_id": "macro.dbt_utils.postgres__type_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.795968, "supported_languages": null}, "macro.dbt_utils.snowflake__type_string": {"unique_id": "macro.dbt_utils.snowflake__type_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7960682, "supported_languages": null}, "macro.dbt_utils.type_timestamp": {"unique_id": "macro.dbt_utils.type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.796293, "supported_languages": null}, "macro.dbt_utils.default__type_timestamp": {"unique_id": "macro.dbt_utils.default__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7963939, "supported_languages": null}, "macro.dbt_utils.postgres__type_timestamp": {"unique_id": "macro.dbt_utils.postgres__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.796494, "supported_languages": null}, "macro.dbt_utils.snowflake__type_timestamp": {"unique_id": "macro.dbt_utils.snowflake__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7965891, "supported_languages": null}, "macro.dbt_utils.type_float": {"unique_id": "macro.dbt_utils.type_float", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.796812, "supported_languages": null}, "macro.dbt_utils.default__type_float": {"unique_id": "macro.dbt_utils.default__type_float", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7969122, "supported_languages": null}, "macro.dbt_utils.bigquery__type_float": {"unique_id": "macro.dbt_utils.bigquery__type_float", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7970078, "supported_languages": null}, "macro.dbt_utils.type_numeric": {"unique_id": "macro.dbt_utils.type_numeric", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.797229, "supported_languages": null}, "macro.dbt_utils.default__type_numeric": {"unique_id": "macro.dbt_utils.default__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.79733, "supported_languages": null}, "macro.dbt_utils.bigquery__type_numeric": {"unique_id": "macro.dbt_utils.bigquery__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.797428, "supported_languages": null}, "macro.dbt_utils.type_bigint": {"unique_id": "macro.dbt_utils.type_bigint", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.797651, "supported_languages": null}, "macro.dbt_utils.default__type_bigint": {"unique_id": "macro.dbt_utils.default__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.797834, "supported_languages": null}, "macro.dbt_utils.bigquery__type_bigint": {"unique_id": "macro.dbt_utils.bigquery__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.797933, "supported_languages": null}, "macro.dbt_utils.type_int": {"unique_id": "macro.dbt_utils.type_int", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7981582, "supported_languages": null}, "macro.dbt_utils.default__type_int": {"unique_id": "macro.dbt_utils.default__type_int", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.798259, "supported_languages": null}, "macro.dbt_utils.bigquery__type_int": {"unique_id": "macro.dbt_utils.bigquery__type_int", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.798356, "supported_languages": null}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.799071, "supported_languages": null}, "macro.dbt_utils.cast_array_to_string": {"unique_id": "macro.dbt_utils.cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.799701, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.7998981, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8003259, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8005261, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.800672, "supported_languages": null}, "macro.dbt_utils.length": {"unique_id": "macro.dbt_utils.length", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.801176, "supported_languages": null}, "macro.dbt_utils.default__length": {"unique_id": "macro.dbt_utils.default__length", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.801333, "supported_languages": null}, "macro.dbt_utils.redshift__length": {"unique_id": "macro.dbt_utils.redshift__length", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.80148, "supported_languages": null}, "macro.dbt_utils.dateadd": {"unique_id": "macro.dbt_utils.dateadd", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.802329, "supported_languages": null}, "macro.dbt_utils.default__dateadd": {"unique_id": "macro.dbt_utils.default__dateadd", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.802557, "supported_languages": null}, "macro.dbt_utils.bigquery__dateadd": {"unique_id": "macro.dbt_utils.bigquery__dateadd", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.802786, "supported_languages": null}, "macro.dbt_utils.postgres__dateadd": {"unique_id": "macro.dbt_utils.postgres__dateadd", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.80301, "supported_languages": null}, "macro.dbt_utils.redshift__dateadd": {"unique_id": "macro.dbt_utils.redshift__dateadd", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.803283, "supported_languages": null}, "macro.dbt_utils.intersect": {"unique_id": "macro.dbt_utils.intersect", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.803714, "supported_languages": null}, "macro.dbt_utils.default__intersect": {"unique_id": "macro.dbt_utils.default__intersect", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.803822, "supported_languages": null}, "macro.dbt_utils.bigquery__intersect": {"unique_id": "macro.dbt_utils.bigquery__intersect", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8039198, "supported_languages": null}, "macro.dbt_utils.escape_single_quotes": {"unique_id": "macro.dbt_utils.escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8045561, "supported_languages": null}, "macro.dbt_utils.default__escape_single_quotes": {"unique_id": "macro.dbt_utils.default__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.804756, "supported_languages": null}, "macro.dbt_utils.snowflake__escape_single_quotes": {"unique_id": "macro.dbt_utils.snowflake__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.804949, "supported_languages": null}, "macro.dbt_utils.bigquery__escape_single_quotes": {"unique_id": "macro.dbt_utils.bigquery__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.80514, "supported_languages": null}, "macro.dbt_utils.right": {"unique_id": "macro.dbt_utils.right", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8059762, "supported_languages": null}, "macro.dbt_utils.default__right": {"unique_id": "macro.dbt_utils.default__right", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.806168, "supported_languages": null}, "macro.dbt_utils.bigquery__right": {"unique_id": "macro.dbt_utils.bigquery__right", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.806387, "supported_languages": null}, "macro.dbt_utils.snowflake__right": {"unique_id": "macro.dbt_utils.snowflake__right", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.806613, "supported_languages": null}, "macro.dbt_utils.listagg": {"unique_id": "macro.dbt_utils.listagg", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.809942, "supported_languages": null}, "macro.dbt_utils.default__listagg": {"unique_id": "macro.dbt_utils.default__listagg", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.810518, "supported_languages": null}, "macro.dbt_utils.bigquery__listagg": {"unique_id": "macro.dbt_utils.bigquery__listagg", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.810914, "supported_languages": null}, "macro.dbt_utils.postgres__listagg": {"unique_id": "macro.dbt_utils.postgres__listagg", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8114681, "supported_languages": null}, "macro.dbt_utils.redshift__listagg": {"unique_id": "macro.dbt_utils.redshift__listagg", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8128011, "supported_languages": null}, "macro.dbt_utils.datediff": {"unique_id": "macro.dbt_utils.datediff", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8165839, "supported_languages": null}, "macro.dbt_utils.default__datediff": {"unique_id": "macro.dbt_utils.default__datediff", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.816813, "supported_languages": null}, "macro.dbt_utils.bigquery__datediff": {"unique_id": "macro.dbt_utils.bigquery__datediff", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8170319, "supported_languages": null}, "macro.dbt_utils.postgres__datediff": {"unique_id": "macro.dbt_utils.postgres__datediff", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.819563, "supported_languages": null}, "macro.dbt_utils.redshift__datediff": {"unique_id": "macro.dbt_utils.redshift__datediff", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.819849, "supported_languages": null}, "macro.dbt_utils.safe_cast": {"unique_id": "macro.dbt_utils.safe_cast", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.820443, "supported_languages": null}, "macro.dbt_utils.default__safe_cast": {"unique_id": "macro.dbt_utils.default__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.820637, "supported_languages": null}, "macro.dbt_utils.snowflake__safe_cast": {"unique_id": "macro.dbt_utils.snowflake__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.820813, "supported_languages": null}, "macro.dbt_utils.bigquery__safe_cast": {"unique_id": "macro.dbt_utils.bigquery__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.820992, "supported_languages": null}, "macro.dbt_utils.hash": {"unique_id": "macro.dbt_utils.hash", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.821481, "supported_languages": null}, "macro.dbt_utils.default__hash": {"unique_id": "macro.dbt_utils.default__hash", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8216739, "supported_languages": null}, "macro.dbt_utils.bigquery__hash": {"unique_id": "macro.dbt_utils.bigquery__hash", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8218508, "supported_languages": null}, "macro.dbt_utils.cast_bool_to_text": {"unique_id": "macro.dbt_utils.cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8223639, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8225589, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.822738, "supported_languages": null}, "macro.dbt_utils.identifier": {"unique_id": "macro.dbt_utils.identifier", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.823476, "supported_languages": null}, "macro.dbt_utils.default__identifier": {"unique_id": "macro.dbt_utils.default__identifier", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.823621, "supported_languages": null}, "macro.dbt_utils.bigquery__identifier": {"unique_id": "macro.dbt_utils.bigquery__identifier", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.823767, "supported_languages": null}, "macro.dbt_utils.any_value": {"unique_id": "macro.dbt_utils.any_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.824256, "supported_languages": null}, "macro.dbt_utils.default__any_value": {"unique_id": "macro.dbt_utils.default__any_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.824405, "supported_languages": null}, "macro.dbt_utils.postgres__any_value": {"unique_id": "macro.dbt_utils.postgres__any_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.824553, "supported_languages": null}, "macro.dbt_utils.position": {"unique_id": "macro.dbt_utils.position", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.825153, "supported_languages": null}, "macro.dbt_utils.default__position": {"unique_id": "macro.dbt_utils.default__position", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.825344, "supported_languages": null}, "macro.dbt_utils.bigquery__position": {"unique_id": "macro.dbt_utils.bigquery__position", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.825527, "supported_languages": null}, "macro.dbt_utils.string_literal": {"unique_id": "macro.dbt_utils.string_literal", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.826057, "supported_languages": null}, "macro.dbt_utils.default__string_literal": {"unique_id": "macro.dbt_utils.default__string_literal", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8262, "supported_languages": null}, "macro.dbt_utils.current_timestamp": {"unique_id": "macro.dbt_utils.current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.827051, "supported_languages": null}, "macro.dbt_utils.default__current_timestamp": {"unique_id": "macro.dbt_utils.default__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.827209, "supported_languages": null}, "macro.dbt_utils.redshift__current_timestamp": {"unique_id": "macro.dbt_utils.redshift__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.827311, "supported_languages": null}, "macro.dbt_utils.bigquery__current_timestamp": {"unique_id": "macro.dbt_utils.bigquery__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.82741, "supported_languages": null}, "macro.dbt_utils.current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8276439, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.827799, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.828005, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.828159, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.828346, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.830406, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8310652, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.831727, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.831989, "supported_languages": null}, "macro.dbt_utils.array_concat": {"unique_id": "macro.dbt_utils.array_concat", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8325891, "supported_languages": null}, "macro.dbt_utils.default__array_concat": {"unique_id": "macro.dbt_utils.default__array_concat", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.832778, "supported_languages": null}, "macro.dbt_utils.bigquery__array_concat": {"unique_id": "macro.dbt_utils.bigquery__array_concat", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.832957, "supported_languages": null}, "macro.dbt_utils.redshift__array_concat": {"unique_id": "macro.dbt_utils.redshift__array_concat", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.833133, "supported_languages": null}, "macro.dbt_utils.bool_or": {"unique_id": "macro.dbt_utils.bool_or", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.833674, "supported_languages": null}, "macro.dbt_utils.default__bool_or": {"unique_id": "macro.dbt_utils.default__bool_or", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.833822, "supported_languages": null}, "macro.dbt_utils.snowflake__bool_or": {"unique_id": "macro.dbt_utils.snowflake__bool_or", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8340511, "supported_languages": null}, "macro.dbt_utils.bigquery__bool_or": {"unique_id": "macro.dbt_utils.bigquery__bool_or", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.834191, "supported_languages": null}, "macro.dbt_utils.last_day": {"unique_id": "macro.dbt_utils.last_day", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.835048, "supported_languages": null}, "macro.dbt_utils.default_last_day": {"unique_id": "macro.dbt_utils.default_last_day", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.835428, "supported_languages": null}, "macro.dbt_utils.default__last_day": {"unique_id": "macro.dbt_utils.default__last_day", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.835638, "supported_languages": null}, "macro.dbt_utils.postgres__last_day": {"unique_id": "macro.dbt_utils.postgres__last_day", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8362, "supported_languages": null}, "macro.dbt_utils.redshift__last_day": {"unique_id": "macro.dbt_utils.redshift__last_day", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.836449, "supported_languages": null}, "macro.dbt_utils.split_part": {"unique_id": "macro.dbt_utils.split_part", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.838607, "supported_languages": null}, "macro.dbt_utils.default__split_part": {"unique_id": "macro.dbt_utils.default__split_part", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.838837, "supported_languages": null}, "macro.dbt_utils._split_part_negative": {"unique_id": "macro.dbt_utils._split_part_negative", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.839149, "supported_languages": null}, "macro.dbt_utils.postgres__split_part": {"unique_id": "macro.dbt_utils.postgres__split_part", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.839623, "supported_languages": null}, "macro.dbt_utils.redshift__split_part": {"unique_id": "macro.dbt_utils.redshift__split_part", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.840092, "supported_languages": null}, "macro.dbt_utils.bigquery__split_part": {"unique_id": "macro.dbt_utils.bigquery__split_part", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8405938, "supported_languages": null}, "macro.dbt_utils.date_trunc": {"unique_id": "macro.dbt_utils.date_trunc", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8411431, "supported_languages": null}, "macro.dbt_utils.default__date_trunc": {"unique_id": "macro.dbt_utils.default__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.841325, "supported_languages": null}, "macro.dbt_utils.bigquery__date_trunc": {"unique_id": "macro.dbt_utils.bigquery__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.841509, "supported_languages": null}, "macro.dbt_utils.array_construct": {"unique_id": "macro.dbt_utils.array_construct", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8423061, "supported_languages": null}, "macro.dbt_utils.default__array_construct": {"unique_id": "macro.dbt_utils.default__array_construct", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.842644, "supported_languages": null}, "macro.dbt_utils.snowflake__array_construct": {"unique_id": "macro.dbt_utils.snowflake__array_construct", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.842837, "supported_languages": null}, "macro.dbt_utils.redshift__array_construct": {"unique_id": "macro.dbt_utils.redshift__array_construct", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.843029, "supported_languages": null}, "macro.dbt_utils.bigquery__array_construct": {"unique_id": "macro.dbt_utils.bigquery__array_construct", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.843216, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.844556, "supported_languages": null}, "macro.dbt_utils.array_append": {"unique_id": "macro.dbt_utils.array_append", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.845155, "supported_languages": null}, "macro.dbt_utils.default__array_append": {"unique_id": "macro.dbt_utils.default__array_append", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8453388, "supported_languages": null}, "macro.dbt_utils.bigquery__array_append": {"unique_id": "macro.dbt_utils.bigquery__array_append", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.845603, "supported_languages": null}, "macro.dbt_utils.redshift__array_append": {"unique_id": "macro.dbt_utils.redshift__array_append", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8458712, "supported_languages": null}, "macro.dbt_utils.get_period_boundaries": {"unique_id": "macro.dbt_utils.get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8543081, "supported_languages": null}, "macro.dbt_utils.default__get_period_boundaries": {"unique_id": "macro.dbt_utils.default__get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8550441, "supported_languages": null}, "macro.dbt_utils.get_period_sql": {"unique_id": "macro.dbt_utils.get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8555021, "supported_languages": null}, "macro.dbt_utils.default__get_period_sql": {"unique_id": "macro.dbt_utils.default__get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.856192, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.863478, "supported_languages": ["sql"]}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8641112, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.864794, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.865568, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.866507, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.867041, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8675048, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.868333, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.868681, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.869312, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.869739, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.870692, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8711731, "supported_languages": null}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.871815, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.872287, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.872813, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.873054, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.87397, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.874731, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.875572, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.876117, "supported_languages": null}, "macro.dbt_utils.test_unique_where": {"unique_id": "macro.dbt_utils.test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.876773, "supported_languages": null}, "macro.dbt_utils.default__test_unique_where": {"unique_id": "macro.dbt_utils.default__test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.877012, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.877552, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.877803, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.878756, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8796859, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.880518, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.881016, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8817458, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.882161, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.882835, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8835819, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.884575, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.885529, "supported_languages": null}, "macro.dbt_utils.test_not_null_where": {"unique_id": "macro.dbt_utils.test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8861928, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.886431, "supported_languages": null}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.887508, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.888808, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.893267, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.895402, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8958678, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.896105, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8965812, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.896863, "supported_languages": null}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.8973062, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.897554, "supported_languages": null}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.898294, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.899338, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.900186, "supported_languages": null}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9005141, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.901036, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.901566, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.902142, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.903184, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.904398, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.905622, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.906225, "supported_languages": null}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.90649, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.907228, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.90826, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9094741, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.910132, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9105458, "supported_languages": null}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.911593, "supported_languages": null}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.912999, "supported_languages": null}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9155579, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9186811, "supported_languages": null}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.922456, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9267578, "supported_languages": null}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.927267, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.927628, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.931116, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.931436, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.931722, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.931988, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9322329, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9324758, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.933367, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.934704, "supported_languages": null}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.935329, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.935734, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9362938, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.936766, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.939009, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9394019, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.94051, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9412322, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9428601, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.945027, "supported_languages": null}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9465861, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9477901, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.948528, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.94957, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9502, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.951055, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.951793, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.951922, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.952051, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.952169, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.953706, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.95411, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9563131, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9576, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.958304, "supported_languages": null}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.959687, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.959927, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.960156, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.960381, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.960587, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.960813, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.961542, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.962558, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.964171, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.964523, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.964874, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9652128, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.965549, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.965927, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.966302, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.966839, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9669812, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.967125, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.967359, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9679732, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.968873, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.969821, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.970552, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.970739, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.970919, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.971096, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.971284, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.975456, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9756851, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9759092, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9761238, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9786298, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.979881, "supported_languages": null}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9800901, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.980482, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.980882, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9810612, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9812322, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9814022, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.982164, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9829812, "supported_languages": null}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.983756, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.98405, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.984359, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.984805, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9860559, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9917629, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.992275, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9929018, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9951732, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.995966, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.996834, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.997049, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.997261, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.997507, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.997717, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.9979289, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171978.998983, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.000368, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.0014248, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.001653, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.0018718, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.002097, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.002336, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.0025852, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.003027, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.003168, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.003401, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.004383, "supported_languages": null}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.006193, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.00865, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.010711, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.011179, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.01132, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.011463, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.012105, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.012734, "supported_languages": null}, "macro.quickbooks_source.get_deposit_line_columns": {"unique_id": "macro.quickbooks_source.get_deposit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_check_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_tax_applicable_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_transaction_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"detail_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"transfer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.01659, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.019658, "supported_languages": null}, "macro.quickbooks_source.get_account_columns": {"unique_id": "macro.quickbooks_source.get_account_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balance_with_sub_accounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_account\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.022645, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.023832, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.027591, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.028502, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_credit_card_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"linked_bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.0308118, "supported_languages": null}, "macro.quickbooks_source.get_transfer_columns": {"unique_id": "macro.quickbooks_source.get_transfer_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"from_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.032644, "supported_languages": null}, "macro.quickbooks_source.get_purchase_columns": {"unique_id": "macro.quickbooks_source.get_purchase_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"remit_to_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.036737, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"posting_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_applicable_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.039615, "supported_languages": null}, "macro.quickbooks_source.get_deposit_columns": {"unique_id": "macro.quickbooks_source.get_deposit_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"cash_back_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"cash_back_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"cash_back_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.042619, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_customer_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_po_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.0466921, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.050488, "supported_languages": null}, "macro.quickbooks_source.get_journal_entry_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"adjustment\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.053016, "supported_languages": null}, "macro.quickbooks_source.get_vendor_columns": {"unique_id": "macro.quickbooks_source.get_vendor_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"other_contacts\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_1099\", \"datatype\": \"boolean\"},\n {\"name\": \"web_url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.057397, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"charge_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"reimburse_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"statement_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_activity_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.058997, "supported_languages": null}, "macro.quickbooks_source.get_item_columns": {"unique_id": "macro.quickbooks_source.get_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"asset_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_start_date\", \"datatype\": \"date\"},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"quantity_on_hand\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"stock_keeping_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_item\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"track_quantity_on_hand\", \"datatype\": \"boolean\"},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.063261, "supported_languages": null}, "macro.quickbooks_source.get_credit_memo_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"remaining_credit\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.0681422, "supported_languages": null}, "macro.quickbooks_source.get_bundle_item_columns": {"unique_id": "macro.quickbooks_source.get_bundle_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_quantity\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.069112, "supported_languages": null}, "macro.quickbooks_source.get_payment_columns": {"unique_id": "macro.quickbooks_source.get_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"receivable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"unapplied_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.07429, "supported_languages": null}, "macro.quickbooks_source.get_vendor_credit_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.077018, "supported_languages": null}, "macro.quickbooks_source.get_refund_receipt_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_bank_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_check_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.085155, "supported_languages": null}, "macro.quickbooks_source.get_bill_columns": {"unique_id": "macro.quickbooks_source.get_bill_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": \"date\"},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.0882938, "supported_languages": null}, "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/avinash.kunnath/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.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bank_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.090136, "supported_languages": null}, "macro.quickbooks_source.get_bill_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.0930529, "supported_languages": null}, "macro.quickbooks_source.get_customer_columns": {"unique_id": "macro.quickbooks_source.get_customer_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"ar_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balance_with_jobs\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_with_parent\", \"datatype\": \"boolean\"},\n {\"name\": \"company_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"default_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job\", \"datatype\": \"boolean\"},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"open_balance_date\", \"datatype\": \"date\"},\n {\"name\": \"parent_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"preferred_delivery_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"resale_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exemption_reason_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"website\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.0993931, "supported_languages": null}, "macro.quickbooks_source.get_invoice_columns": {"unique_id": "macro.quickbooks_source.get_invoice_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.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.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_bcc_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_cc_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_sales_rep\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit\", \"datatype\": dbt.type_float()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.106654, "supported_languages": null}, "macro.quickbooks_source.get_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"check_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.108682, "supported_languages": null}, "macro.quickbooks_source.get_department_columns": {"unique_id": "macro.quickbooks_source.get_department_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_department\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.110372, "supported_languages": null}, "macro.quickbooks_source.get_invoice_line_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.114774, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.1176882, "supported_languages": null}, "macro.quickbooks_source.get_purchase_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.120596, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.124342, "supported_languages": null}, "macro.quickbooks_source.get_estimate_columns": {"unique_id": "macro.quickbooks_source.get_estimate_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"accepted_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"accepted_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"expiration_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.129747, "supported_languages": null}, "macro.quickbooks_source.get_bill_payment_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"check_bank_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"process_bill_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.132865, "supported_languages": null}, "macro.quickbooks_source.get_sales_receipt_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": \"date\"},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": \"date\"},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.140577, "supported_languages": null}, "macro.quickbooks_source.get_bundle_columns": {"unique_id": "macro.quickbooks_source.get_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_grouped_items\", \"datatype\": \"boolean\"},\n {\"name\": \"purchase_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.142682, "supported_languages": null}, "macro.quickbooks_source.get_estimate_line_columns": {"unique_id": "macro.quickbooks_source.get_estimate_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.1470962, "supported_languages": null}, "macro.quickbooks_source.get_address_columns": {"unique_id": "macro.quickbooks_source.get_address_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_sub_division_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_3\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_4\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_5\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"postal_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.149238, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_line_index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_num\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674171979.152405, "supported_languages": null}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "quickbooks_source.account_table": {"unique_id": "quickbooks_source.account_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_table", "block_contents": "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."}, "quickbooks_source.address_table": {"unique_id": "quickbooks_source.address_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "address_table", "block_contents": "Table containing address details."}, "quickbooks_source.bill_line_table": {"unique_id": "quickbooks_source.bill_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_line_table", "block_contents": "Table containing distinct line items from bills within the `bill` table."}, "quickbooks_source.bill_linked_txn_table": {"unique_id": "quickbooks_source.bill_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_linked_txn_table", "block_contents": "Mapping table containing bill payment transactions linked to a bill."}, "quickbooks_source.bill_payment_line_table": {"unique_id": "quickbooks_source.bill_payment_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_payment_line_table", "block_contents": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table."}, "quickbooks_source.bill_payment_table": {"unique_id": "quickbooks_source.bill_payment_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_payment_table", "block_contents": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor."}, "quickbooks_source.bill_table": {"unique_id": "quickbooks_source.bill_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_table", "block_contents": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both."}, "quickbooks_source.bundle_item_table": {"unique_id": "quickbooks_source.bundle_item_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bundle_item_table", "block_contents": "Mapping table containing all bundle and item combinations."}, "quickbooks_source.bundle_table": {"unique_id": "quickbooks_source.bundle_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bundle_table", "block_contents": "Table containing all bundles possible to be used within an invoice."}, "quickbooks_source.credit_card_payment_txn_table": {"unique_id": "quickbooks_source.credit_card_payment_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_card_payment_txn_table", "block_contents": "Table containing all credit card payment transactions."}, "quickbooks_source.credit_memo_line_table": {"unique_id": "quickbooks_source.credit_memo_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_memo_line_table", "block_contents": "Table containing individual records of credit memos."}, "quickbooks_source.credit_memo_table": {"unique_id": "quickbooks_source.credit_memo_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_memo_table", "block_contents": "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."}, "quickbooks_source.customer_table": {"unique_id": "quickbooks_source.customer_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_table", "block_contents": "Table containing customers of which are consumers of the service or product that your business offers."}, "quickbooks_source.department_table": {"unique_id": "quickbooks_source.department_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_table", "block_contents": "Table containing records representing physical locations such as stores, and sales regions."}, "quickbooks_source.deposit_line_table": {"unique_id": "quickbooks_source.deposit_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deposit_line_table", "block_contents": "Table containing individual line items comprising the deposit."}, "quickbooks_source.deposit_table": {"unique_id": "quickbooks_source.deposit_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deposit_table", "block_contents": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit."}, "quickbooks_source.estimate_line_table": {"unique_id": "quickbooks_source.estimate_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "estimate_line_table", "block_contents": "Table containing line item records of an estimate."}, "quickbooks_source.estimate_table": {"unique_id": "quickbooks_source.estimate_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "estimate_table", "block_contents": "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."}, "quickbooks_source.invoice_line_bundle_table": {"unique_id": "quickbooks_source.invoice_line_bundle_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_line_bundle_table", "block_contents": "Table containing lines of an invoice which were bundled."}, "quickbooks_source.invoice_line_table": {"unique_id": "quickbooks_source.invoice_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_line_table", "block_contents": "Table containing individual records from invoices."}, "quickbooks_source.invoice_linked_txn_table": {"unique_id": "quickbooks_source.invoice_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_linked_txn_table", "block_contents": "Mapping table for invoices records to respective estimate and payment objects."}, "quickbooks_source.invoice_table": {"unique_id": "quickbooks_source.invoice_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_table", "block_contents": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later."}, "quickbooks_source.item_table": {"unique_id": "quickbooks_source.item_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_table", "block_contents": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services."}, "quickbooks_source.journal_entry_line_table": {"unique_id": "quickbooks_source.journal_entry_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "journal_entry_line_table", "block_contents": "Table containing individual line items of a transaction associated with a journal entry."}, "quickbooks_source.journal_entry_table": {"unique_id": "quickbooks_source.journal_entry_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "journal_entry_table", "block_contents": "Table containing journal entry transactions."}, "quickbooks_source.payment_line_table": {"unique_id": "quickbooks_source.payment_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "payment_line_table", "block_contents": "Table containing individual line items recorded within a payment."}, "quickbooks_source.payment_table": {"unique_id": "quickbooks_source.payment_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "payment_table", "block_contents": "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."}, "quickbooks_source.purchase_line_table": {"unique_id": "quickbooks_source.purchase_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_line_table", "block_contents": "Table containing individual line items of a transaction associated with a purchase."}, "quickbooks_source.purchase_order_line_table": {"unique_id": "quickbooks_source.purchase_order_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_line_table", "block_contents": "Table containing individual line items of a transaction associated with a purchase order."}, "quickbooks_source.purchase_order_linked_txn_table": {"unique_id": "quickbooks_source.purchase_order_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_linked_txn_table", "block_contents": "Mapping table for purchase order records to respective bill and purchase objects."}, "quickbooks_source.purchase_order_table": {"unique_id": "quickbooks_source.purchase_order_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_table", "block_contents": "Table containing records of purchase orders (PO)."}, "quickbooks_source.purchase_table": {"unique_id": "quickbooks_source.purchase_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_table", "block_contents": "Table containing records of purchase expenses."}, "quickbooks_source.refund_receipt_line_table": {"unique_id": "quickbooks_source.refund_receipt_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "refund_receipt_line_table", "block_contents": "Table containing individual line items of a refund transaction."}, "quickbooks_source.refund_receipt_table": {"unique_id": "quickbooks_source.refund_receipt_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "refund_receipt_table", "block_contents": "Table containing refunds to the customer for a product or service that was provided."}, "quickbooks_source.sales_receipt_line_table": {"unique_id": "quickbooks_source.sales_receipt_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "sales_receipt_line_table", "block_contents": "Table containing individual line items of a sales transaction."}, "quickbooks_source.sales_receipt_table": {"unique_id": "quickbooks_source.sales_receipt_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "sales_receipt_table", "block_contents": "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."}, "quickbooks_source.transfer_table": {"unique_id": "quickbooks_source.transfer_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transfer_table", "block_contents": "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."}, "quickbooks_source.vendor_credit_line_table": {"unique_id": "quickbooks_source.vendor_credit_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_credit_line_table", "block_contents": "Table containing individual vendor credit line items."}, "quickbooks_source.vendor_credit_table": {"unique_id": "quickbooks_source.vendor_credit_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_credit_table", "block_contents": "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."}, "quickbooks_source.vendor_table": {"unique_id": "quickbooks_source.vendor_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_table", "block_contents": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product."}, "quickbooks_source.account_id": {"unique_id": "quickbooks_source.account_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_id", "block_contents": "The identifier of the account associated"}, "quickbooks_source.amount": {"unique_id": "quickbooks_source.amount", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "amount", "block_contents": "Monetary amount of"}, "quickbooks_source.class_id": {"unique_id": "quickbooks_source.class_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "class_id", "block_contents": "Reference to the class associated"}, "quickbooks_source.created_at": {"unique_id": "quickbooks_source.created_at", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "created_at", "block_contents": "Timestamp of the creation date"}, "quickbooks_source.currency_id": {"unique_id": "quickbooks_source.currency_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currency_id", "block_contents": "Reference to the currency"}, "quickbooks_source.customer_id": {"unique_id": "quickbooks_source.customer_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_id", "block_contents": "Reference to the customer associated"}, "quickbooks_source.department_id": {"unique_id": "quickbooks_source.department_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_id", "block_contents": "Reference to the department"}, "quickbooks_source.id": {"unique_id": "quickbooks_source.id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "id", "block_contents": "Unique identifier of the"}, "quickbooks_source.item_id": {"unique_id": "quickbooks_source.item_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_id", "block_contents": "Reference to the item"}, "quickbooks_source._fivetran_deleted": {"unique_id": "quickbooks_source._fivetran_deleted", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_deleted", "block_contents": "Boolean created by Fivetran to indicate whether the record has been deleted."}}, "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": ["source.quickbooks_source.quickbooks.vendor_credit"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["source.quickbooks_source.quickbooks.refund_receipt_line"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["source.quickbooks_source.quickbooks.estimate_line"], "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": ["source.quickbooks_source.quickbooks.purchase_order_line"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["source.quickbooks_source.quickbooks.credit_memo_line"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["source.quickbooks_source.quickbooks.journal_entry"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["source.quickbooks_source.quickbooks.invoice_line_bundle"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["source.quickbooks_source.quickbooks.payment"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["source.quickbooks_source.quickbooks.invoice_line"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["source.quickbooks_source.quickbooks.deposit_line"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["source.quickbooks_source.quickbooks.customer"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["source.quickbooks_source.quickbooks.bill_line"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["source.quickbooks_source.quickbooks.item"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["source.quickbooks_source.quickbooks.account"], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp": ["source.quickbooks_source.quickbooks.credit_card_payment_txn"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["source.quickbooks_source.quickbooks.vendor_credit_line"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["source.quickbooks_source.quickbooks.department"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["source.quickbooks_source.quickbooks.bundle"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["source.quickbooks_source.quickbooks.bundle_item"], "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": ["source.quickbooks_source.quickbooks.purchase_order"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["source.quickbooks_source.quickbooks.bill_payment_line"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["source.quickbooks_source.quickbooks.estimate"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["source.quickbooks_source.quickbooks.purchase"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["source.quickbooks_source.quickbooks.credit_memo"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["source.quickbooks_source.quickbooks.bill"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["source.quickbooks_source.quickbooks.transfer"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["source.quickbooks_source.quickbooks.vendor"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["source.quickbooks_source.quickbooks.purchase_line"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["source.quickbooks_source.quickbooks.address"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["source.quickbooks_source.quickbooks.payment_line"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["source.quickbooks_source.quickbooks.refund_receipt"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["source.quickbooks_source.quickbooks.sales_receipt"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["source.quickbooks_source.quickbooks.bill_payment"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["source.quickbooks_source.quickbooks.journal_entry_line"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["source.quickbooks_source.quickbooks.deposit"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["source.quickbooks_source.quickbooks.bill_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["source.quickbooks_source.quickbooks.invoice_linked_txn"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["source.quickbooks_source.quickbooks.sales_receipt_line"], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": ["source.quickbooks_source.quickbooks.purchase_order_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["source.quickbooks_source.quickbooks.invoice"], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": ["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.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": ["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.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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": ["model.quickbooks_source.stg_quickbooks__vendor"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": ["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": [], "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": ["test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784"], "model.quickbooks_source.stg_quickbooks__transfer": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e", "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150"], "model.quickbooks_source.stg_quickbooks__payment_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5", "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26"], "model.quickbooks_source.stg_quickbooks__vendor": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a", "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327", "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f"], "model.quickbooks_source.stg_quickbooks__estimate": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882", "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186", "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b"], "model.quickbooks_source.stg_quickbooks__bundle": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc", "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60"], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5", "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e", "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40", "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca", "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152"], "model.quickbooks_source.stg_quickbooks__purchase_order": ["test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8", "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5", "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde", "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a"], "model.quickbooks_source.stg_quickbooks__purchase_order_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13", "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044", "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0", "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a", "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d"], "model.quickbooks_source.stg_quickbooks__payment": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e", "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953", "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014", "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c"], "model.quickbooks_source.stg_quickbooks__bill": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf", "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8"], "model.quickbooks_source.stg_quickbooks__bill_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062", "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"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d", "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985", "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"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d"], "model.quickbooks_source.stg_quickbooks__deposit": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908", "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1"], "model.quickbooks_source.stg_quickbooks__item": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6", "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9"], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568", "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723"], "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.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.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": [], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": [], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": [], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": [], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": [], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": [], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": [], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": [], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": [], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": [], "source.quickbooks_source.quickbooks.account": ["model.quickbooks_source.stg_quickbooks__account_tmp"], "source.quickbooks_source.quickbooks.address": ["model.quickbooks_source.stg_quickbooks__address_tmp"], "source.quickbooks_source.quickbooks.bill_line": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "source.quickbooks_source.quickbooks.bill_linked_txn": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "source.quickbooks_source.quickbooks.bill_payment_line": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "source.quickbooks_source.quickbooks.bill_payment": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "source.quickbooks_source.quickbooks.bill": ["model.quickbooks_source.stg_quickbooks__bill_tmp"], "source.quickbooks_source.quickbooks.bundle_item": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "source.quickbooks_source.quickbooks.bundle": ["model.quickbooks_source.stg_quickbooks__bundle_tmp"], "source.quickbooks_source.quickbooks.credit_card_payment_txn": ["model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp"], "source.quickbooks_source.quickbooks.credit_memo_line": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "source.quickbooks_source.quickbooks.credit_memo": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "source.quickbooks_source.quickbooks.customer": ["model.quickbooks_source.stg_quickbooks__customer_tmp"], "source.quickbooks_source.quickbooks.department": ["model.quickbooks_source.stg_quickbooks__department_tmp"], "source.quickbooks_source.quickbooks.deposit_line": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "source.quickbooks_source.quickbooks.deposit": ["model.quickbooks_source.stg_quickbooks__deposit_tmp"], "source.quickbooks_source.quickbooks.estimate": ["model.quickbooks_source.stg_quickbooks__estimate_tmp"], "source.quickbooks_source.quickbooks.estimate_line": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "source.quickbooks_source.quickbooks.invoice_linked_txn": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "source.quickbooks_source.quickbooks.invoice_line": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "source.quickbooks_source.quickbooks.invoice_line_bundle": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "source.quickbooks_source.quickbooks.invoice": ["model.quickbooks_source.stg_quickbooks__invoice_tmp"], "source.quickbooks_source.quickbooks.item": ["model.quickbooks_source.stg_quickbooks__item_tmp"], "source.quickbooks_source.quickbooks.journal_entry_line": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "source.quickbooks_source.quickbooks.journal_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "source.quickbooks_source.quickbooks.payment_line": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "source.quickbooks_source.quickbooks.payment": ["model.quickbooks_source.stg_quickbooks__payment_tmp"], "source.quickbooks_source.quickbooks.purchase_line": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "source.quickbooks_source.quickbooks.purchase": ["model.quickbooks_source.stg_quickbooks__purchase_tmp"], "source.quickbooks_source.quickbooks.purchase_order_line": ["model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp"], "source.quickbooks_source.quickbooks.purchase_order": ["model.quickbooks_source.stg_quickbooks__purchase_order_tmp"], "source.quickbooks_source.quickbooks.refund_receipt_line": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "source.quickbooks_source.quickbooks.refund_receipt": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "source.quickbooks_source.quickbooks.sales_receipt_line": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "source.quickbooks_source.quickbooks.sales_receipt": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "source.quickbooks_source.quickbooks.transfer": ["model.quickbooks_source.stg_quickbooks__transfer_tmp"], "source.quickbooks_source.quickbooks.vendor_credit_line": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "source.quickbooks_source.quickbooks.vendor_credit": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "source.quickbooks_source.quickbooks.vendor": ["model.quickbooks_source.stg_quickbooks__vendor_tmp"]}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v7.json", "dbt_version": "1.3.0", "generated_at": "2023-01-24T23:34:56.188268Z", "invocation_id": "bedc06cb-d583-4e90-9e3f-9c4814934009", "env": {}, "project_id": "aa9386a7fba3fd9e54dc759cf0b5037c", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.quickbooks_source_integration_tests.bill_payment_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_payment_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.785246, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_payment_data\""}, "seed.quickbooks_source_integration_tests.bundle_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bundle_data"], "unique_id": "seed.quickbooks_source_integration_tests.bundle_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.793165, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bundle_data\""}, "seed.quickbooks_source_integration_tests.bill_payment_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_payment_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.794718, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_payment_line_data\""}, "seed.quickbooks_source_integration_tests.payment_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "payment_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.payment_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.7962391, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"payment_line_data\""}, "seed.quickbooks_source_integration_tests.vendor_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "vendor_data"], "unique_id": "seed.quickbooks_source_integration_tests.vendor_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.797908, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_data\""}, "seed.quickbooks_source_integration_tests.address_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "address_data"], "unique_id": "seed.quickbooks_source_integration_tests.address_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.7996001, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"address_data\""}, "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_order_linked_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.801217, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_order_linked_txn_data\""}, "seed.quickbooks_source_integration_tests.invoice_line_bundle_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_line_bundle_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_bundle_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.8028328, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_line_bundle_data\""}, "seed.quickbooks_source_integration_tests.invoice_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.804588, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_data\""}, "seed.quickbooks_source_integration_tests.payment_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "payment_data"], "unique_id": "seed.quickbooks_source_integration_tests.payment_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.806112, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"payment_data\""}, "seed.quickbooks_source_integration_tests.invoice_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.807698, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_line_data\""}, "seed.quickbooks_source_integration_tests.deposit_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "deposit_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.deposit_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.809497, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"deposit_line_data\""}, "seed.quickbooks_source_integration_tests.estimate_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "estimate_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.estimate_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.811003, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"estimate_line_data\""}, "seed.quickbooks_source_integration_tests.purchase_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.812495, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_data\""}, "seed.quickbooks_source_integration_tests.refund_receipt_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "refund_receipt_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.8139951, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"refund_receipt_line_data\""}, "seed.quickbooks_source_integration_tests.credit_memo_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "credit_memo_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.816134, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_memo_line_data\""}, "seed.quickbooks_source_integration_tests.bill_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.8177228, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_data\""}, "seed.quickbooks_source_integration_tests.bill_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_linked_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.819231, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_linked_txn_data\""}, "seed.quickbooks_source_integration_tests.vendor_credit_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "vendor_credit_data"], "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.820713, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_credit_data\""}, "seed.quickbooks_source_integration_tests.customer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "customer_data"], "unique_id": "seed.quickbooks_source_integration_tests.customer_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.822443, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"customer_data\""}, "seed.quickbooks_source_integration_tests.estimate_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "estimate_data"], "unique_id": "seed.quickbooks_source_integration_tests.estimate_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.823921, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"estimate_data\""}, "seed.quickbooks_source_integration_tests.purchase_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.825427, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_line_data\""}, "seed.quickbooks_source_integration_tests.journal_entry_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "journal_entry_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.8269088, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"journal_entry_line_data\""}, "seed.quickbooks_source_integration_tests.journal_entry_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "journal_entry_data"], "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.828547, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"journal_entry_data\""}, "seed.quickbooks_source_integration_tests.bill_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.830058, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bill_line_data\""}, "seed.quickbooks_source_integration_tests.bundle_item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bundle_item_data"], "unique_id": "seed.quickbooks_source_integration_tests.bundle_item_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.83153, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"bundle_item_data\""}, "seed.quickbooks_source_integration_tests.invoice_linked_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_linked_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_linked_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.833183, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"invoice_linked_txn_data\""}, "seed.quickbooks_source_integration_tests.account_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "account_data"], "unique_id": "seed.quickbooks_source_integration_tests.account_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.834674, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"account_data\""}, "seed.quickbooks_source_integration_tests.purchase_order_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_order_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.836212, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_order_line_data\""}, "seed.quickbooks_source_integration_tests.transfer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "transfer_data"], "unique_id": "seed.quickbooks_source_integration_tests.transfer_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.837748, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"transfer_data\""}, "seed.quickbooks_source_integration_tests.purchase_order_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_order_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.8394141, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"purchase_order_data\""}, "seed.quickbooks_source_integration_tests.sales_receipt_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "sales_receipt_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.8409238, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"sales_receipt_line_data\""}, "seed.quickbooks_source_integration_tests.vendor_credit_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "vendor_credit_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_line_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.842428, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"vendor_credit_line_data\""}, "seed.quickbooks_source_integration_tests.credit_card_payment_txn_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "credit_card_payment_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.credit_card_payment_txn_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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": "b841a2f9402ba5f52789b27002186dd63d63c303bce30c02aba104b787c048d6"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.84433, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_card_payment_txn_data\""}, "seed.quickbooks_source_integration_tests.credit_memo_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "credit_memo_data"], "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.8462238, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"credit_memo_data\""}, "seed.quickbooks_source_integration_tests.department_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "department_data"], "unique_id": "seed.quickbooks_source_integration_tests.department_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.848019, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"department_data\""}, "seed.quickbooks_source_integration_tests.item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "item_data"], "unique_id": "seed.quickbooks_source_integration_tests.item_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.8496041, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"item_data\""}, "seed.quickbooks_source_integration_tests.sales_receipt_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "sales_receipt_data"], "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.8512042, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"sales_receipt_data\""}, "seed.quickbooks_source_integration_tests.deposit_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "deposit_data"], "unique_id": "seed.quickbooks_source_integration_tests.deposit_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.852897, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"deposit_data\""}, "seed.quickbooks_source_integration_tests.refund_receipt_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests", "fqn": ["quickbooks_source_integration_tests", "refund_receipt_data"], "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_data", "raw_code": "", "language": "sql", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}"}, "created_at": 1674602841.854466, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests\".\"refund_receipt_data\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as {{ dbt.type_string() }}) as journal_entry_id,\n index,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n amount,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n department_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "4a44ae6affd5281ee7cc64e05384fdb7ad18b15c18185cc970f9bd639bdf7a34"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line_tmp"], ["stg_quickbooks__journal_entry_line_tmp"]], "sources": [], "metrics": [], "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": {}, "docs": {"show": true, "node_color": null}, "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": 1674602843.1276522, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as TEXT) as journal_entry_id,\n index,\n cast(account_id as TEXT) as account_id,\n amount,\n cast(customer_id as TEXT) as customer_id,\n department_id,\n cast(class_id as TEXT) as class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as TEXT) as vendor_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\""}, "model.quickbooks_source.stg_quickbooks__transfer": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_transfer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__transfer"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as transfer_id,\n amount,\n cast(from_account_id as {{ dbt.type_string() }}) as from_account_id,\n cast(to_account_id as {{ dbt.type_string() }}) as to_account_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "2e5aeff4520b116401c48251bf9a3f2db443857c8c8f7c07aaf5b41286878746"}, "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, "node_color": null}, "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": 1674602843.161633, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as transfer_id,\n amount,\n cast(from_account_id as TEXT) as from_account_id,\n cast(to_account_id as TEXT) as to_account_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as {{ dbt.type_string() }}) as bill_payment_id,\n index,\n amount,\n cast(bill_id as {{ dbt.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 source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "e0de0b712f688b7f8628fa17430dc3d700042e37a53783d3e8fc7ee0272a71db"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line_tmp"], ["stg_quickbooks__bill_payment_line_tmp"]], "sources": [], "metrics": [], "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": {}, "docs": {"show": true, "node_color": null}, "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": 1674602843.0789142, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as TEXT) as bill_payment_id,\n index,\n amount,\n cast(bill_id as TEXT) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\""}, "model.quickbooks_source.stg_quickbooks__payment_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as {{ dbt.type_string() }}) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n credit_memo_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "62737fcbdd45af89bc14370b70f36cfbd94391602da7a6afb4dd97e4a1120429"}, "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, "node_color": null}, "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": 1674602843.131635, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as TEXT) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as TEXT) as invoice_id,\n credit_memo_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\""}, "model.quickbooks_source.stg_quickbooks__vendor": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor", "raw_code": "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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as {{ dbt.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 source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "6b6d5e653208581f032f6850766879795733912c64f11163419584210d386970"}, "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, "node_color": null}, "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": 1674602843.171551, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as TEXT) 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 source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\""}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as {{ dbt.type_string() }}) as bundle_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "acc22a519a861cd717e417884b61bc191432e1c46a31ea8ebde689e6f4223177"}, "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, "node_color": null}, "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": 1674602843.11502, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as TEXT) as bundle_id,\n cast(account_id as TEXT) as account_id,\n cast(item_id as TEXT) as item_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\""}, "model.quickbooks_source.stg_quickbooks__estimate": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as estimate_id,\n cast(class_id as {{ dbt.type_string() }}) as 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 source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "501fe174a3a77c1f92407b060600528ce9e3b198e143ab2985f5a0f0e9c95c70"}, "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, "node_color": null}, "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": 1674602843.107253, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as estimate_id,\n cast(class_id as TEXT) as 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 source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as {{ dbt.type_string() }}) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "b7cf6d56a640a9f0700a3620a94fc61a422c8db6dfdbcbbb5939e0fd80c5a3b7"}, "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": "The identifier of the account associated with the credited refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with the refunded item.", "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": "The identifier of the account associated with the income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount of the refunded item.", "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, "node_color": null}, "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": 1674602843.092627, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as TEXT) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\""}, "model.quickbooks_source.stg_quickbooks__bundle": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at,\n source_relation\n\n from fields\n)\n\nselect * from final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "8e3f27ad4f72eb020a1c32b3654e9306ef2f878a0c52ac8356b695a0c03c2611"}, "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, "node_color": null}, "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": 1674602843.087441, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at,\n source_relation\n\n from fields\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\""}, "model.quickbooks_source.stg_quickbooks__department": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_department_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__department"], "unique_id": "model.quickbooks_source.stg_quickbooks__department", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\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 source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "61c0a5d8287b3e73bbee2986e1d0914da2cdc67a88534bd2be26264eb6e29a67"}, "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, "node_color": null}, "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": 1674602843.100118, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\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 source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\""}, "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_card_payment_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_card_payment_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn", "raw_code": "--To enable this model, set the using_invoice_bundle variable within your dbt_project.yml file to True.\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\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.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 source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "a8274053455a19f46f54111bac914dd48d1365ce550d73b051c8b22f9fafef0b"}, "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, "node_color": null}, "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": 1674602843.0897548, "compiled_code": "--To enable this model, set the using_invoice_bundle variable within your dbt_project.yml file to True.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_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 TIMESTAMP) 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 TEXT) 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\n \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) 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 source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_card_payment_txn\""}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line", "raw_code": "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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as {{ dbt.type_string() }}) as purchase_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id, \n account_expense_billable_status,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "1ffe50688ea656d1019565cd7238adef008dc1e1e7e97ba2048bb6c4628f873d"}, "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_class_id": {"name": "item_expense_class_id", "description": "The class id associated with 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, "node_color": null}, "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": 1674602843.137391, "compiled_code": "with base as (\n\n select *\n from \"postgres\".\"quickbooks_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as TEXT) as purchase_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id, \n account_expense_billable_status,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\""}, "model.quickbooks_source.stg_quickbooks__purchase": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase", "raw_code": "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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as purchase_id,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n created_at,\n cast(doc_number as {{ dbt.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.type_string() }}) as customer_id,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "cde15943157fb1be413075f3aa62e1670fb0e6bb5118ca59ea5f75f816487d4a"}, "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, "node_color": null}, "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": 1674602843.140621, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as purchase_id,\n cast(account_id as TEXT) as account_id,\n created_at,\n cast(doc_number as TEXT) 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 TEXT) as customer_id,\n cast(vendor_id as TEXT) as vendor_id,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as {{ dbt.type_string() }}) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id, \n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "6e468b38cb9d0067dad366c52ec5e366a4455ed5158fc38d6502f1520529cfe9"}, "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": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class id of the discount associated with the refunded item.", "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_class_id": {"name": "sales_item_class_id", "description": "Class id of the refunded item.", "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, "node_color": null}, "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": 1674602843.150623, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as TEXT) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id, \n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle_item"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as {{ dbt.type_string() }}) as bundle_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n item_quantity,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "c5e85a89debd33e5f789ef58fa05a1bf931b63a0451c0ab7d8f6b0b565895a4d"}, "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, "node_color": null}, "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": 1674602843.086126, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as TEXT) as bundle_id,\n cast(item_id as TEXT) as item_id,\n item_quantity,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\""}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as credit_memo_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "3757765d000c8762afea93869ab1ba6c3d5f22574c7b3d90cd91f4ecb894f85d"}, "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, "node_color": null}, "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": 1674602843.095646, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as credit_memo_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n cast(class_id as TEXT) as class_id,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\""}, "model.quickbooks_source.stg_quickbooks__purchase_order": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n transaction_date,\n status,\n due_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "697ef46b9a8ee1073daf25c393eca18697b1c95b1b57914e5a9cef8bd8adcca2"}, "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, "node_color": null}, "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": 1674602843.147815, "compiled_code": "--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_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 TEXT) 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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as TEXT) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as TEXT) as payable_account_id,\n cast(vendor_id as TEXT) as vendor_id,\n transaction_date,\n status,\n due_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "raw_code": "{{ 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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as {{ dbt.type_string() }}) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt.type_string() }}) as discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n cast(sales_item_account_id as {{ dbt.type_string() }}) as sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "050d2104a9f5c48e73b726f52bc9472987b3581193a9694bc6744324ba43b82b"}, "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": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class id of the discount credited to the sales line.", "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_class_id": {"name": "sales_item_class_id", "description": "Class id of the receipt 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, "node_color": null}, "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": 1674602843.1569421, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as TEXT) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as TEXT) as discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n cast(sales_item_account_id as TEXT) as sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt", "raw_code": "{{ 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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as sales_receipt_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n created_at,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n department_id,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "42e250594a269ed1d23ffcce0276c23ce7304ebaf20e55336607dcda12c46dae"}, "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, "node_color": null}, "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": 1674602843.1601, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as sales_receipt_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n created_at,\n cast(customer_id as TEXT) as customer_id,\n department_id,\n cast(class_id as TEXT) as class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\""}, "model.quickbooks_source.stg_quickbooks__purchase_order_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt.type_string() }}) as purchase_order_id,\n index,\n cast(account_expense_account_id as {{ dbt.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.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "a2b4b3ba47604cb6f1391043643e49168328c1ab7df52754f699748f11fa8888"}, "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, "node_color": null}, "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": 1674602843.143444, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as TEXT) as purchase_order_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_line\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n cast(payment_id as {{ dbt.type_string() }}) as payment_id,\n cast(estimate_id as {{ dbt.type_string() }}) as estimate_id,\n index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "f2b779facddf42a3e62603a1254b1503c2b8a8f52dd69a27ed8a14625c1c5953"}, "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, "node_color": null}, "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": 1674602843.11142, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n cast(payment_id as TEXT) as payment_id,\n cast(estimate_id as TEXT) as estimate_id,\n index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__invoice": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as invoice_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n cast(billing_address_id as {{ dbt.type_string() }}) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "6d5a6ee2afa37a3567700cccf5831e3f27446303711dfaab707579d6c3ae4082"}, "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": []}, "class_id": {"name": "class_id", "description": "Reference to the class to which the invoice is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "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": 1674602843.1216698, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as invoice_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as TEXT) as customer_id,\n cast(billing_address_id as TEXT) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n cast(class_id as TEXT) as class_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\""}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bill_payment_id,\n cast(check_bank_account_id as {{ dbt.type_string() }}) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as {{ dbt.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.type_string() }}) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "20561d9a7ab619d2b9872cdb42a90fc7ac99f8eb10715a5ab068f9856fbeb3b5"}, "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, "node_color": null}, "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": 1674602843.081749, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as bill_payment_id,\n cast(check_bank_account_id as TEXT) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as TEXT) 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 TEXT) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line_bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt.type_string() }}) as invoice_id,\n index,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n description,\n amount,\n cast(sales_item_item_id as {{ dbt.type_string() }}) as sales_item_item_id,\n cast(item_id as {{ dbt.type_string() }}) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as {{ dbt.type_string() }}) as account_id,\n unit_price,\n invoice_line_index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "0f971477ce0e36654a8571afaa3c4de0ca048b529a182bd4d63aa79874676719"}, "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": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Invoice 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, "node_color": null}, "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": 1674602843.118071, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as TEXT) as invoice_id,\n index,\n cast(class_id as TEXT) as class_id,\n description,\n amount,\n cast(sales_item_item_id as TEXT) as sales_item_item_id,\n cast(item_id as TEXT) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as TEXT) as account_id,\n unit_price,\n invoice_line_index,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\""}, "model.quickbooks_source.stg_quickbooks__account": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__account"], "unique_id": "model.quickbooks_source.stg_quickbooks__account", "raw_code": "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\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as account_id,\n cast(account_number as {{ dbt.type_string() }}) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as {{ dbt.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 source_relation\n from account\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "c363c2c2ed0bd1cdb52064560957c75ad004c3e727f72b5b1bc361e9d8ccf37a"}, "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.", "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, "node_color": null}, "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": 1674602843.0702138, "compiled_code": "with base as (\n select *\n from \"postgres\".\"quickbooks_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\n \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as account_id,\n cast(account_number as TEXT) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as TEXT) 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 source_relation\n from account\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\""}, "model.quickbooks_source.stg_quickbooks__payment": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as {{ dbt.type_string() }}) as receivable_account_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "f8b0ad9217d505ec03b1868643d078257992cf4dc4a1b524cab1bc454aeb4a27"}, "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, "node_color": null}, "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": 1674602843.13436, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as TEXT) as receivable_account_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as TEXT) as customer_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\""}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as {{ dbt.type_string() }}) as estimate_id,\n index,\n description,\n discount_account_id,\n cast(discount_class_id as {{ dbt.type_string() }}) as discount_class_id,\n sales_item_account_id,\n cast(sales_item_class_id as {{ dbt.type_string() }}) as sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "08e406854edfa3b633a1c7b434b2ee9e010a4e6c1bc49de7a37ef44c8d277451"}, "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, "node_color": null}, "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": 1674602843.1102989, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as TEXT) as estimate_id,\n index,\n description,\n discount_account_id,\n cast(discount_class_id as TEXT) as discount_class_id,\n sales_item_account_id,\n cast(sales_item_class_id as TEXT) as sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n index,\n cast(bill_payment_id as {{ dbt.type_string() }}) as bill_payment_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "aa0410b4e6baafc2e21269e6857ef88e84961b061e5007b0a7bb117c314f682d"}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn_tmp"], ["stg_quickbooks__bill_linked_txn_tmp"]], "sources": [], "metrics": [], "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": {}, "docs": {"show": true, "node_color": null}, "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": 1674602843.076661, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as TEXT) as bill_id,\n index,\n cast(bill_payment_id as TEXT) as bill_payment_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__address": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__address"], "unique_id": "model.quickbooks_source.stg_quickbooks__address", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.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 source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "df30cdfedd8bc9f3eb2e7e7e62f55f3c1d4e1ac0a53012e4e2b567c8d4f34d63"}, "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, "node_color": null}, "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": 1674602843.071915, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\""}, "model.quickbooks_source.stg_quickbooks__bill": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as bill_id,\n balance,\n cast(doc_number as {{ dbt.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.type_string() }}) as payable_account_id,\n total_amount,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n private_note,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "fc4dc80f5295a1755ea41bcfd621db97343c27e09c1646d98c1d04c2cc30f418"}, "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, "node_color": null}, "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": 1674602843.085189, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as TEXT) as bill_id,\n balance,\n cast(doc_number as TEXT) 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 TEXT) as payable_account_id,\n total_amount,\n cast(vendor_id as TEXT) as vendor_id,\n private_note,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\""}, "model.quickbooks_source.stg_quickbooks__bill_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n index,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n item_expense_billable_status,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "d541cef41b0a6505a9ac44d9317a77d9b6addf43cb083219fb9c92a2c793f401"}, "tags": [], "refs": [["stg_quickbooks__bill_line_tmp"], ["stg_quickbooks__bill_line_tmp"]], "sources": [], "metrics": [], "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": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "The class reference associated with 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, "node_color": null}, "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": 1674602843.075697, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as TEXT) as bill_id,\n index,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n item_expense_billable_status,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\""}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt.type_string() }}) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "4f62753998ceb5f5764a9fba39a9fbd9fb87a16abf35090e50f2dd18eac58346"}, "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, "node_color": null}, "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": 1674602843.1298602, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as TEXT) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as TEXT) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as refund_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n cast(class_id as {{ dbt.type_string() }}) as class_id,\n cast(deposit_to_account_id as {{ dbt.type_string() }}) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as {{ dbt.type_string() }}) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "5cd054048b45bd2245f33de53658e58c23bf8eabb8e4cfdcc096c915a977a834"}, "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, "node_color": null}, "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": 1674602843.15414, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as refund_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n cast(class_id as TEXT) as class_id,\n cast(deposit_to_account_id as TEXT) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as TEXT) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\""}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as {{ dbt.type_string() }}) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as {{ dbt.type_string() }}) as deposit_account_id,\n cast(deposit_class_id as {{ dbt.type_string() }}) as deposit_class_id,\n cast(deposit_customer_id as {{ dbt.type_string() }}) as deposit_customer_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "f2f457f0503a22ec51d606aab2156f7534091b31840927c84bb5fc7a2d34c838"}, "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, "node_color": null}, "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": 1674602843.101829, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as TEXT) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as TEXT) as deposit_account_id,\n cast(deposit_class_id as TEXT) as deposit_class_id,\n cast(deposit_customer_id as TEXT) as deposit_customer_id,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as vendor_credit_id,\n balance,\n cast(doc_number as {{ dbt.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as {{ dbt.type_string() }}) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as {{ dbt.type_string() }}) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "bd2e5efc709f19666acabd4fdd2483c1013d05078dca5ff4ffb8a1975a4a9978"}, "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, "node_color": null}, "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": 1674602843.168867, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as vendor_credit_id,\n balance,\n cast(doc_number as TEXT) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as TEXT) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as TEXT) as vendor_id,\n _fivetran_deleted,\n source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as {{ dbt.type_string() }}) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as {{ dbt.type_string() }}) as account_expense_customer_id,\n cast(account_expense_account_id as {{ dbt.type_string() }}) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_class_id as {{ dbt.type_string() }}) as account_expense_class_id,\n cast(item_expense_customer_id as {{ dbt.type_string() }}) as item_expense_customer_id,\n cast(item_expense_item_id as {{ dbt.type_string() }}) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n cast(item_expense_class_id as {{ dbt.type_string() }}) as item_expense_class_id,\n item_expense_billable_status,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "44764c7cbfb920e4b4c187299856d960ffdb9408d2e8dabc29c326c4c5e9f3c9"}, "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, "node_color": null}, "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": 1674602843.165788, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as TEXT) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as TEXT) as account_expense_customer_id,\n cast(account_expense_account_id as TEXT) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_class_id as TEXT) as account_expense_class_id,\n cast(item_expense_customer_id as TEXT) as item_expense_customer_id,\n cast(item_expense_item_id as TEXT) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n cast(item_expense_class_id as TEXT) as item_expense_class_id,\n item_expense_billable_status,\n amount,\n description,\n source_relation\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\""}, "model.quickbooks_source.stg_quickbooks__deposit": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as deposit_id,\n cast(account_id as {{ dbt.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 source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "3a8f91dd22dbe918fccedae73ae5a3e2db38a6344ac0a39d885ef49b149c89ce"}, "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, "node_color": null}, "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": 1674602843.1045141, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as deposit_id,\n cast(account_id as TEXT) 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 source_relation\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\""}, "model.quickbooks_source.stg_quickbooks__item": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__item"], "unique_id": "model.quickbooks_source.stg_quickbooks__item", "raw_code": "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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.type_string() }}) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as {{ dbt.type_string() }}) as income_account_id,\n cast(asset_account_id as {{ dbt.type_string() }}) as asset_account_id,\n cast(expense_account_id as {{ dbt.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.type_string() }}) as parent_item_id,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "049dfdf58d6ee3ac495bb7f41562a880562a55f818a0fdfda3a14574f8dfc7ce"}, "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, "node_color": null}, "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": 1674602843.124928, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as TEXT) as income_account_id,\n cast(asset_account_id as TEXT) as asset_account_id,\n cast(expense_account_id as TEXT) 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 TEXT) as parent_item_id,\n source_relation\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\""}, "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn", "raw_code": "--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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt.type_string() }}) as purchase_order_id,\n cast(bill_id as {{ dbt.type_string() }}) as bill_id,\n cast(purchase_id as {{ dbt.type_string() }}) as purchase_id,\n cast(vendor_credit_id as {{ dbt.type_string() }}) as vendor_credit_id,\n index,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "3e9cbee58cb2dab37c5798fd7a97954b3eae45670cc0288ce232394180fd1605"}, "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, "node_color": null}, "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": 1674602843.144883, "compiled_code": "--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_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as TEXT) as purchase_order_id,\n cast(bill_id as TEXT) as bill_id,\n cast(purchase_id as TEXT) as purchase_id,\n cast(vendor_credit_id as TEXT) as vendor_credit_id,\n index,\n source_relation\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__customer": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.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", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__customer"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer", "raw_code": "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 {{ \n fivetran_utils.source_relation(\n union_schema_variable='quickbooks_union_schemas', \n union_database_variable='quickbooks_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt.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 source_relation\n\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "b896108565ae7c6d917878e5c8c6dd77f3fa89e61e4bda773ab8f06dc77ad7f3"}, "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, "node_color": null}, "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": 1674602843.098142, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_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 \n\n\n, cast('' as \n varchar\n) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as TEXT) 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 source_relation\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor_credit"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='vendor_credit', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor_credit',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "135d5b0865e271c5d29187680f97b226b40b1c6c1e618f9d0818f0b7122dcfe6"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor_credit"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.766665, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"vendor_credit_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.refund_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='refund_receipt_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='refund_receipt_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "b35b79d236200ea1e2d71df28d1d32dbc3d8ce93eb0c97fc2d502997e133055e"}, "tags": [], "refs": [], "sources": [["quickbooks", "refund_receipt_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.781399, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"refund_receipt_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.estimate_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='estimate_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='estimate_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "e6b43f9598030c138d67898959d3bcc06d4b571b16bd790974c5bda4e90dfe18"}, "tags": [], "refs": [], "sources": [["quickbooks", "estimate_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.78779, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"estimate_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase_order_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "be4cdef26ee4b271e7c425130b4c3b80be45214b5be926af060d32331badcc0f"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.794027, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"purchase_order_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_memo_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='credit_memo_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_memo_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "877429c46bb2ccc5558c8577eda2444270a82e5e7717aec418fba450db743924"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_memo_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.799956, "compiled_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"credit_memo_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.journal_entry"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='journal_entry', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='journal_entry',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "4cc1a32910c8e5255f3d3bbe4578fb9f562e3f2fb56eff69e22f7f69b11fa32e"}, "tags": [], "refs": [], "sources": [["quickbooks", "journal_entry"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.805672, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"journal_entry_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_line_bundle"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_line_bundle', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_line_bundle',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "a2dc8302a76014fdede73acb185944cb3901457f568da00b9400dbadd61a4781"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_line_bundle"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.811042, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"invoice_line_bundle_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.payment"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='payment', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='payment',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "afe62d4646d63e7fc44dbe73ad04eb3af6f94e1fd98953cfdd5a5fae5464818f"}, "tags": [], "refs": [], "sources": [["quickbooks", "payment"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.817699, "compiled_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"payment_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "ec89045532e817aed8e8dc0a09e66f53a2c88aba038c7dcbbb51f6875d044f5d"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.82372, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"invoice_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='deposit_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='deposit_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "2a560b4173366349cc88aa5c091b2f10c61f60c0bfe73b3b0f673877627002a4"}, "tags": [], "refs": [], "sources": [["quickbooks", "deposit_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.8298938, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"deposit_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.customer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__customer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='customer', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='customer',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "2125a8e00af7bd53a1c2d0b414a756fa128457d4ecda78c77f813ba133a81325"}, "tags": [], "refs": [], "sources": [["quickbooks", "customer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.835464, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"customer_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='bill_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "8f06919fa5048f09e127332ef0675a7fac11b3d0787e6672612010db4a7f6193"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.840459, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"bill_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='item', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='item',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "0db4c37e6bea881ee6f85348bc069b1ba7d74ce4fd550ed0ac643d4ef780ab79"}, "tags": [], "refs": [], "sources": [["quickbooks", "item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.8472362, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"item_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\""}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.account"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__account_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='account', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='account',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "1157f7c518bf6f5e15bd9080fe829b06b7e3ddf59ea3e3a06164fe453e0def85"}, "tags": [], "refs": [], "sources": [["quickbooks", "account"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.852939, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"account_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_card_payment_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='credit_card_payment_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_card_payment_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "b1910ce2b3a9463b6c4b232fa24e807de5c899a1d03dde1feef6bc43dbe8b3d6"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_card_payment_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.858604, "compiled_code": "--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"credit_card_payment_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_card_payment_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor_credit_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='vendor_credit_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor_credit_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "38b9e05b27c7db52aa41fa740caa437895743d5de562b476917f75b55277debc"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor_credit_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.864672, "compiled_code": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"vendor_credit_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.department"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__department_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='department', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='department',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "ea310c765f23c51e6a2ef7bef84749f2a3fa89ac06b768173788080096354a00"}, "tags": [], "refs": [], "sources": [["quickbooks", "department"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.870104, "compiled_code": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"department_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bundle"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='bundle', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bundle',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "722d0a1b955a8c123522a87f6b97c8770d00365b98d1fc057d1724e9c5c06667"}, "tags": [], "refs": [], "sources": [["quickbooks", "bundle"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.87712, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"bundle_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bundle_item"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='bundle_item', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bundle_item',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "29e60e9dfb0da56786a41a51e1f1d441ae47d0e7b43727f8a31af463d6daf588"}, "tags": [], "refs": [], "sources": [["quickbooks", "bundle_item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.8824582, "compiled_code": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"bundle_item_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase_order"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "a14f234fcfdc6777fe2bb8898ce79b14b45590d19bd6eab25d33ee95cc899bbd"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.888843, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"purchase_order_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='bill_payment_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_payment_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "914efeefeb70efc2b64e7bae87b298f93f419a08b170e06c3efb825f8eca1968"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_payment_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.89441, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"bill_payment_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.estimate"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='estimate', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='estimate',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "bd7a335748a13aae584ae7ee6a45b8565299cf7a48a0495be863920c797d83c6"}, "tags": [], "refs": [], "sources": [["quickbooks", "estimate"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.90006, "compiled_code": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"estimate_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='purchase', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "1ad34ab2fb967805e5387b4dcf01716431d1008430faee53027f043466c3896d"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.906642, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"purchase_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.credit_memo"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='credit_memo', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='credit_memo',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "1bbda612f739f980fcf68562c4efbd39bbae1e1a37713c7bd5c4deecc24660f0"}, "tags": [], "refs": [], "sources": [["quickbooks", "credit_memo"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.911801, "compiled_code": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"credit_memo_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='bill', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "b579ba85c94cfa32fdb6fe9e65c2ee8e804c21417af340278c7370a7b9a31f2c"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.9177139, "compiled_code": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"bill_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\""}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.transfer"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__transfer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='transfer', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='transfer',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "e46216a5c817a4e27af2ac9a936e7e21dc89127c20a0775d7e21c63cbdb4e173"}, "tags": [], "refs": [], "sources": [["quickbooks", "transfer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.923657, "compiled_code": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"transfer_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.vendor"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='vendor', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='vendor',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "e106f714c2f307d3d50e99e8bd61cd4c03e96002006ce67191e182f2e1b19f7a"}, "tags": [], "refs": [], "sources": [["quickbooks", "vendor"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.929302, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"vendor_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='purchase_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "39c7787a6481961b9d80bf3173afd5ece106fdb67bad2edbd69d436c6bbc3aca"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.9357052, "compiled_code": "\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"purchase_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.address"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__address_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='address', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='address',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "39a9820afa24c94b220f35fa72a0452806f5cdb828e5eb70583cded4ceb71454"}, "tags": [], "refs": [], "sources": [["quickbooks", "address"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.9415438, "compiled_code": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"address_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='payment_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='payment_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "333d6ce9e2621c99b011bfbb668c38c1fe20d45a9e155278371ad1c5c19fffa3"}, "tags": [], "refs": [], "sources": [["quickbooks", "payment_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.9475682, "compiled_code": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"payment_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.refund_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='refund_receipt', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='refund_receipt',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "274dbd883a2adaf7559f8bc8812a558a95b52329f18218fe5494c63b7abcf7a5"}, "tags": [], "refs": [], "sources": [["quickbooks", "refund_receipt"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.953676, "compiled_code": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"refund_receipt_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.sales_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='sales_receipt', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='sales_receipt',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "bb64ce4afbe0e70f70d7c9dae8a57423d5ee7dc2326107fa4c5d4371ca911fce"}, "tags": [], "refs": [], "sources": [["quickbooks", "sales_receipt"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.959141, "compiled_code": "\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"sales_receipt_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_payment"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='bill_payment', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_payment',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "f956078b3ec8d833f517f431c67509fe75f494b11a6fa4a735b85d232453dba4"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_payment"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602842.998914, "compiled_code": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"bill_payment_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='journal_entry_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='journal_entry_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "bcba66ad0358646e9993b39ecdd17c69130874858cb027ed198364bb77a3d283"}, "tags": [], "refs": [], "sources": [["quickbooks", "journal_entry_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602843.004771, "compiled_code": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"journal_entry_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.deposit"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='deposit', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='deposit',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "e1f40c890b39fe0dd1bcec03c90b403c4e77015c805426b90ca3c3b1c93eb3b2"}, "tags": [], "refs": [], "sources": [["quickbooks", "deposit"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602843.010779, "compiled_code": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"deposit_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='bill_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='bill_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "2583068246d6617f1e99a3b11589211fb7cb90f66035526cee17be299ba826ec"}, "tags": [], "refs": [], "sources": [["quickbooks", "bill_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602843.01649, "compiled_code": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"bill_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='invoice_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "813acd5c2445c8886b2aa20afb05c5dc8165b9d38b3081b12a879e67abc67520"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602843.022093, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"invoice_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.sales_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\n{{\n fivetran_utils.union_data(\n table_identifier='sales_receipt_line', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='sales_receipt_line',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "87037987bd00e48e0a7fe6300511bcf7c80031e6fe4ba3b77902a7baa5752132"}, "tags": [], "refs": [], "sources": [["quickbooks", "sales_receipt_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602843.0286899, "compiled_code": "\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"sales_receipt_line_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.purchase_order_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_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", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='purchase_order_linked_txn', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='purchase_order_linked_txn',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "926409c011fa67fdcd598c4c0c21b87fb5dabe8654d46f0ee7caac0a028d5d99"}, "tags": [], "refs": [], "sources": [["quickbooks", "purchase_order_linked_txn"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602843.034535, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"purchase_order_linked_txn_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.quickbooks_source.quickbooks.invoice"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp", "raw_code": "--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\n{{\n fivetran_utils.union_data(\n table_identifier='invoice', \n database_variable='quickbooks_database', \n schema_variable='quickbooks_schema', \n default_database=target.database,\n default_schema='quickbooks',\n default_variable='invoice',\n union_schema_variable='quickbooks_union_schemas',\n union_database_variable='quickbooks_union_databases'\n )\n}}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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": "c901088fa713bc1e59f7299c7c7d6ac7aea71b7c97e5a2821fd8efd33214bfc1"}, "tags": [], "refs": [], "sources": [["quickbooks", "invoice"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "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": 1674602843.040524, "compiled_code": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\n\n\n\n\n select * \n from \"postgres\".\"quickbooks_source_integrations_tests\".\"invoice_data\"\n\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\""}, "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.1774888, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"quickbooks_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": {"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_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", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.179046, "compiled_code": "\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_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation", "alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c250fbd62d33682b7816cb52dfc3c29"}, "created_at": 1674602843.188572, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n group by account_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.1955829, "compiled_code": "\n \n \n\n\n\nselect address_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["address_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__address')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation", "alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ea2ca4111a1d5463abe776e005c7d772"}, "created_at": 1674602843.197443, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n address_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\n group by address_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__address"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.201471, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bef323d83a6624b59a493fe8678153b1"}, "created_at": 1674602843.202795, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\n group by bill_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.206771, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_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": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.208499, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_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": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.209805, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_payment_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_487ae4ed3e6515e1119410b052e6f614"}, "created_at": 1674602843.211135, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_payment_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\n group by bill_payment_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_payment_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.215538, "compiled_code": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_payment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation", "alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c3c16cc237119d09c84e75057a9582ec"}, "created_at": 1674602843.217313, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_payment_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\n group by bill_payment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill_payment"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.221238, "compiled_code": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bill_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bill')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation", "alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c28ddd5789110418dc73ea10c40920f4"}, "created_at": 1674602843.22251, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bill_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\n group by bill_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bill"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.226621, "compiled_code": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"quickbooks_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.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.2279081, "compiled_code": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["bundle_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation", "alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_09730cf68ccfa2ddf1a0171abdbe7727"}, "created_at": 1674602843.229377, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n bundle_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\n group by bundle_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.232812, "compiled_code": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["credit_memo_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d11c458ea2ce7f40d69dbe2502aff858"}, "created_at": 1674602843.234236, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n credit_memo_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\n group by credit_memo_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__credit_memo_line"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.238509, "compiled_code": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["credit_memo_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation", "alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0370ab2c481d81737ad54a6b44ec7083"}, "created_at": 1674602843.239899, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n credit_memo_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\n group by credit_memo_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__credit_memo"}, "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.24404, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["customer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__customer')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation", "alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_94a5b3ccc73a9f1372dd56afe4104c9a"}, "created_at": 1674602843.245406, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n customer_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\n group by customer_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__customer"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.24971, "compiled_code": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["deposit_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c925ee73881ebc194f9cd06282c3b48b"}, "created_at": 1674602843.251204, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deposit_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\n group by deposit_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__deposit_line"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.255455, "compiled_code": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["deposit_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation", "alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_092a258f34ac4a7fefe159e881ac39cb"}, "created_at": 1674602843.256992, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n deposit_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\n group by deposit_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__deposit"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.261397, "compiled_code": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["estimate_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation", "alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7bf162cb88029051f57dba3c7fb04a68"}, "created_at": 1674602843.262744, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n estimate_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\n group by estimate_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__estimate"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.267091, "compiled_code": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["estimate_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_32a21fecfc924c9112967c0151ed2e2a"}, "created_at": 1674602843.268706, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n estimate_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\"\n group by estimate_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__estimate_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.27331, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_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": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.27488, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c6315f3241abd1bacbc31091d17954d0"}, "created_at": 1674602843.2764091, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\n group by invoice_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.2812228, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "index", "invoice_line_index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line_bundle')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation", "alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_50efaaff0f1b2a391c218200ac15163a"}, "created_at": 1674602843.282583, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, index, invoice_line_index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\n group by invoice_id, index, invoice_line_index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice_line_bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.2879732, "compiled_code": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["invoice_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation", "alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_319edd8e021d4717bac9384ad54afc4c"}, "created_at": 1674602843.28946, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n invoice_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\n group by invoice_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__invoice"}, "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.293911, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["item_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__item')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation", "alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7426c41960b95c9389dbbbc54a1cf5d5"}, "created_at": 1674602843.2952719, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n item_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\n group by item_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__item"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.299781, "compiled_code": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"quickbooks_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": {"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_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", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.301357, "compiled_code": "\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_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["journal_entry_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4c8432634b226965133f1e7c71701fee"}, "created_at": 1674602843.305714, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n journal_entry_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n group by journal_entry_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.31036, "compiled_code": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"quickbooks_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": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.3116632, "compiled_code": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["payment_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__payment_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7392e0f7492547c3f7fdf460f4541625"}, "created_at": 1674602843.31296, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n payment_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\n group by payment_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__payment_line"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.317225, "compiled_code": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["payment_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__payment')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation", "alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f2adbcdbbcee8d760b8061840cafa557"}, "created_at": 1674602843.3191428, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n payment_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\n group by payment_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__payment"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.3264709, "compiled_code": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_af6a2ae9538ebdc44c401715aaef9153"}, "created_at": 1674602843.32925, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\n group by purchase_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.3358238, "compiled_code": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"quickbooks_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": {"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_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", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.337905, "compiled_code": "\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_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation", "alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_386d04b86fca1a7980db6f9572202563"}, "created_at": 1674602843.34545, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n group by purchase_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.350158, "compiled_code": "\n \n \n\n\n\nselect purchase_order_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_order_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ba099633a523f1dc8a259e210e71943"}, "created_at": 1674602843.351874, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_order_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_line\"\n group by purchase_order_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_order_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.3568718, "compiled_code": "\n \n \n\n\n\nselect purchase_order_id\nfrom \"postgres\".\"quickbooks_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.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.358273, "compiled_code": "\n \n \n\n\n\nselect purchase_order_id\nfrom \"postgres\".\"quickbooks_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": {"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_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", "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.359607, "compiled_code": "\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_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["purchase_order_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation", "alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8808ebb4f985933b6458aa95672f633d"}, "created_at": 1674602843.36478, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n purchase_order_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order\"\n group by purchase_order_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.370118, "compiled_code": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0576ca2d4762e19d78b83d83ac2c0576"}, "created_at": 1674602843.3718662, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\n group by refund_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__refund_receipt_line"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.376935, "compiled_code": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["refund_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation", "alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_98a0d08c840b3e48e476b15f4128e605"}, "created_at": 1674602843.378361, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n refund_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\n group by refund_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__refund_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.3852549, "compiled_code": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sales_receipt_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3c761efd9d55d2e81605c5aa8b69c899"}, "created_at": 1674602843.3867378, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sales_receipt_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\n group by sales_receipt_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__sales_receipt_line"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.393717, "compiled_code": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["sales_receipt_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation", "alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8270165597a02c4fdee4d5d05b75b03d"}, "created_at": 1674602843.395644, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n sales_receipt_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\n group by sales_receipt_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__sales_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.4064372, "compiled_code": "\n \n \n\n\n\nselect transfer_id\nfrom \"postgres\".\"quickbooks_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.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transfer_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__transfer')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation", "alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2c8c7ac1eb8b4669ad2cee7a8f4ed233"}, "created_at": 1674602843.4092648, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transfer_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\n group by transfer_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__transfer"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["vendor_credit_id", "index", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor_credit_line')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation", "alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d15906fc804bc105aea1840c47631e4b"}, "created_at": 1674602843.418488, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n vendor_credit_id, index, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\"\n group by vendor_credit_id, index, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__vendor_credit_line"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.4239419, "compiled_code": "\n \n \n\n\n\nselect vendor_credit_id\nfrom \"postgres\".\"quickbooks_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.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": {"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_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", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "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": 1674602843.426235, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"quickbooks_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"}, "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["vendor_id", "source_relation"], "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4", "schema": "dbt_test__audit", "database": null, "tags": [], "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_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation"], "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4\") }}", "language": "sql", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation", "alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_53c8360ba41e0cdcbf50ea70bfa40ce4"}, "created_at": 1674602843.428384, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n vendor_id, source_relation\n from \"postgres\".\"quickbooks_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\n group by vendor_id, source_relation\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_quickbooks__vendor"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"fqn": ["quickbooks_source", "quickbooks", "account"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.account", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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.", "columns": {"id": {"name": "id", "description": "Unique identifier of the 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 creation date for the account.", "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_integrations_tests\".\"account_data\"", "created_at": 1674602843.605363}, "source.quickbooks_source.quickbooks.address": {"fqn": ["quickbooks_source", "quickbooks", "address"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.address", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 of the 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_integrations_tests\".\"address_data\"", "created_at": 1674602843.605637}, "source.quickbooks_source.quickbooks.bill_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "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": "Reference to the class 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": "Reference to the customer 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": "Reference to the item with the item based expense bill 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 bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Reference to the customer 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 identifier of the account associated with 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_integrations_tests\".\"bill_line_data\"", "created_at": 1674602843.605778}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "bill_linked_txn"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "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_integrations_tests\".\"bill_linked_txn_data\"", "created_at": 1674602843.6058712}, "source.quickbooks_source.quickbooks.bill_payment_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "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_integrations_tests\".\"bill_payment_line_data\"", "created_at": 1674602843.60598}, "source.quickbooks_source.quickbooks.bill_payment": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with the credited bill payment. 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": "The identifier of the account associated with the credited bill payment. 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 the department 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_integrations_tests\".\"bill_payment_data\"", "created_at": 1674602843.606116}, "source.quickbooks_source.quickbooks.bill": {"fqn": ["quickbooks_source", "quickbooks", "bill"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bill", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with 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_integrations_tests\".\"bill_data\"", "created_at": 1674602843.6062562}, "source.quickbooks_source.quickbooks.bundle_item": {"fqn": ["quickbooks_source", "quickbooks", "bundle_item"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle_item", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 bundle 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_integrations_tests\".\"bundle_item_data\"", "created_at": 1674602843.6063628}, "source.quickbooks_source.quickbooks.bundle": {"fqn": ["quickbooks_source", "quickbooks", "bundle"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 creation date for the bundle.", "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_integrations_tests\".\"bundle_data\"", "created_at": 1674602843.606459}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"fqn": ["quickbooks_source", "quickbooks", "credit_card_payment_txn"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_card_payment_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with the bank 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": "The identifier of the account associated with the credit card which the 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_integrations_tests\".\"credit_card_payment_txn_data\"", "created_at": 1674602843.6065578}, "source.quickbooks_source.quickbooks.credit_memo_line": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item 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": "The identifier of the account associated with a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated 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_integrations_tests\".\"credit_memo_line_data\"", "created_at": 1674602843.6066618}, "source.quickbooks_source.quickbooks.credit_memo": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 of the 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_integrations_tests\".\"credit_memo_data\"", "created_at": 1674602843.6067672}, "source.quickbooks_source.quickbooks.customer": {"fqn": ["quickbooks_source", "quickbooks", "customer"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.customer", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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_integrations_tests\".\"customer_data\"", "created_at": 1674602843.606868}, "source.quickbooks_source.quickbooks.department": {"fqn": ["quickbooks_source", "quickbooks", "department"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.department", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 creation date for the department.", "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_integrations_tests\".\"department_data\"", "created_at": 1674602843.606962}, "source.quickbooks_source.quickbooks.deposit_line": {"fqn": ["quickbooks_source", "quickbooks", "deposit_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 associated the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "The identifier of the account associated with the credited deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Reference to the customer associated with the credited deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integrations_tests\".\"deposit_line_data\"", "created_at": 1674602843.607096}, "source.quickbooks_source.quickbooks.deposit": {"fqn": ["quickbooks_source", "quickbooks", "deposit"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the deposit.", "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_integrations_tests\".\"deposit_data\"", "created_at": 1674602843.607201}, "source.quickbooks_source.quickbooks.estimate": {"fqn": ["quickbooks_source", "quickbooks", "estimate"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 creation date for the estimate.", "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_integrations_tests\".\"estimate_data\"", "created_at": 1674602843.607307}, "source.quickbooks_source.quickbooks.estimate_line": {"fqn": ["quickbooks_source", "quickbooks", "estimate_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of 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": "The identifier of 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": "The identifier of the account associated 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_integrations_tests\".\"estimate_line_data\"", "created_at": 1674602843.607413}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "invoice_linked_txn"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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_integrations_tests\".\"invoice_linked_txn_data\"", "created_at": 1674602843.607602}, "source.quickbooks_source.quickbooks.invoice_line": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with 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": "The identifier of the account associated for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with 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": "The identifier of 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_integrations_tests\".\"invoice_line_data\"", "created_at": 1674602843.607718}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line_bundle"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Invoice 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 item for sales 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": "The identifier of 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_integrations_tests\".\"invoice_line_bundle_data\"", "created_at": 1674602843.607837}, "source.quickbooks_source.quickbooks.invoice": {"fqn": ["quickbooks_source", "quickbooks", "invoice"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated 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": "Reference to the customer 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": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice.", "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_integrations_tests\".\"invoice_data\"", "created_at": 1674602843.607947}, "source.quickbooks_source.quickbooks.item": {"fqn": ["quickbooks_source", "quickbooks", "item"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.item", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 creation date for the item within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "The identifier of the account associated with the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "The identifier of the account associated with the inventory asset that tracks its current value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "The identifier of the account associated 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_integrations_tests\".\"item_data\"", "created_at": 1674602843.6080499}, "source.quickbooks_source.quickbooks.journal_entry_line": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with the credited journal entry.", "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": "Reference to the customer associated with the credited journal entry.", "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 associated with the journal entry.", "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_integrations_tests\".\"journal_entry_line_data\"", "created_at": 1674602843.60815}, "source.quickbooks_source.quickbooks.journal_entry": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 creation date for the journal entry.", "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_integrations_tests\".\"journal_entry_data\"", "created_at": 1674602843.608245}, "source.quickbooks_source.quickbooks.payment_line": {"fqn": ["quickbooks_source", "quickbooks", "payment_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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_integrations_tests\".\"payment_line_data\"", "created_at": 1674602843.6083388}, "source.quickbooks_source.quickbooks.payment": {"fqn": ["quickbooks_source", "quickbooks", "payment"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.payment", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "The identifier of the account associated with the deposit 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 the customer associated with the payment.", "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_integrations_tests\".\"payment_data\"", "created_at": 1674602843.608442}, "source.quickbooks_source.quickbooks.purchase_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with the credited purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class 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": "Reference to the item associated with the item based expense purchase 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 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_integrations_tests\".\"purchase_line_data\"", "created_at": 1674602843.6085398}, "source.quickbooks_source.quickbooks.purchase": {"fqn": ["quickbooks_source", "quickbooks", "purchase"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with the applied purchase based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the purchase.", "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 associated with the purchase.", "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_integrations_tests\".\"purchase_data\"", "created_at": 1674602843.608643}, "source.quickbooks_source.quickbooks.purchase_order_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with the credited purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class 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": "Reference to the customer 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": "Reference to the item 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": "Reference to the customer 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_integrations_tests\".\"purchase_order_line_data\"", "created_at": 1674602843.6089091}, "source.quickbooks_source.quickbooks.purchase_order_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_linked_txn"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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_integrations_tests\".\"purchase_order_linked_txn_data\"", "created_at": 1674602843.609042}, "source.quickbooks_source.quickbooks.purchase_order": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 associated with 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": []}, "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": "The identifier of the account associated with the credited purchase order.", "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_integrations_tests\".\"purchase_order_data\"", "created_at": 1674602843.609212}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with the income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount of the refunded item.", "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": "The identifier of the account associated with the credited refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with 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_integrations_tests\".\"refund_receipt_line_data\"", "created_at": 1674602843.6093209}, "source.quickbooks_source.quickbooks.refund_receipt": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 associated with the refund receipt.", "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": "The identifier of the account associated with which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with 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_integrations_tests\".\"refund_receipt_data\"", "created_at": 1674602843.6094332}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount credited to the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "The identifier of the account associated with the sales 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 receipt credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item with 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_integrations_tests\".\"sales_receipt_line_data\"", "created_at": 1674602843.609535}, "source.quickbooks_source.quickbooks.sales_receipt": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with where payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the creation date for the sale.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated sales receipt 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 associated 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_integrations_tests\".\"sales_receipt_data\"", "created_at": 1674602843.60965}, "source.quickbooks_source.quickbooks.transfer": {"fqn": ["quickbooks_source", "quickbooks", "transfer"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.transfer", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with where the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "The identifier of the account associated with where 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_integrations_tests\".\"transfer_data\"", "created_at": 1674602843.609741}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit_line"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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": "The identifier of the account associated with 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": "Reference to the customer associated with the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "Reference to the class 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": "Reference to the customer associated with the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "Reference to the item 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_integrations_tests\".\"vendor_credit_line_data\"", "created_at": 1674602843.609846}, "source.quickbooks_source.quickbooks.vendor_credit": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 creation date for the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "The identifier of the account associated with 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_integrations_tests\".\"vendor_credit_data\"", "created_at": 1674602843.609946}, "source.quickbooks_source.quickbooks.vendor": {"fqn": ["quickbooks_source", "quickbooks", "vendor"], "database": "postgres", "schema": "quickbooks_source_integrations_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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_data", "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 creation date for the vendor.", "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_integrations_tests\".\"vendor_data\"", "created_at": 1674602843.610039}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.725193, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.725533, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.725693, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7258508, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.726005, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"unique_id": "macro.dbt_postgres.postgres__get_catalog", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n\n {%- call statement('catalog', fetch_result=True) -%}\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n\n where (\n {%- for schema in schemas -%}\n upper(sch.nspname) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table, [m]aterialized view\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7276428, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"unique_id": "macro.dbt_postgres.postgres_get_relations", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "name": "postgres_get_relations", "macro_sql": "{% macro postgres_get_relations () -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7286642, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"unique_id": "macro.dbt_postgres.postgres__create_table_as", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7368908, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7376158, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"unique_id": "macro.dbt_postgres.postgres__create_schema", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.738065, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"unique_id": "macro.dbt_postgres.postgres__drop_schema", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7385159, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.739191, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.739724, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"unique_id": "macro.dbt_postgres.postgres__information_schema_name", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.739966, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"unique_id": "macro.dbt_postgres.postgres__list_schemas", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.740458, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7411048, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.742321, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7425961, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.743205, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.743662, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"unique_id": "macro.dbt_postgres.postgres_escape_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.744312, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.744652, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.745615, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.745912, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"unique_id": "macro.dbt_postgres.postgres__copy_grants", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.746079, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "name": "postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.746819, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "name": "postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.747914, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"unique_id": "macro.dbt_postgres.postgres__dateadd", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.748308, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"unique_id": "macro.dbt_postgres.postgres__listagg", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.749281, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"unique_id": "macro.dbt_postgres.postgres__datediff", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.753977, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"unique_id": "macro.dbt_postgres.postgres__any_value", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.754281, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"unique_id": "macro.dbt_postgres.postgres__last_day", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.75509, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"unique_id": "macro.dbt_postgres.postgres__split_part", "package_name": "dbt_postgres", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.755768, "supported_languages": null}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7574642, "supported_languages": null}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.757761, "supported_languages": null}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7579641, "supported_languages": null}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.758164, "supported_languages": null}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7583601, "supported_languages": null}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.75903, "supported_languages": null}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7594612, "supported_languages": null}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7598999, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7605948, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.761004, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.766049, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.766316, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.766644, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.767675, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7679071, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.768161, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n select {{ check_cols_config | join(', ') }} from ({{ node['compiled_code'] }}) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.770182, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.772078, "supported_languages": null}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.777843, "supported_languages": null}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7782452, "supported_languages": null}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.778482, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.778602, "supported_languages": null}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.778806, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.77896, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.779256, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7805219, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.780787, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.781139, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.78175, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7906508, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.7937868, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.794511, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.794946, "supported_languages": null}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.795552, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.796096, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.798341, "supported_languages": null}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.799129, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.800093, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"unique_id": "macro.dbt.get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.800431, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"unique_id": "macro.dbt.default__get_merge_update_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.801444, "supported_languages": null}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.807864, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.810292, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.810634, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last }}\n {% endfor %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.811677, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.812051, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.812982, "supported_languages": null}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8140118, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"unique_id": "macro.dbt.get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.815549, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"unique_id": "macro.dbt.default__get_incremental_append_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.815897, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.81616, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.81652, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"unique_id": "macro.dbt.get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.816776, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"unique_id": "macro.dbt.default__get_incremental_merge_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.817136, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.817395, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"predicates\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.817755, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"unique_id": "macro.dbt.get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.818005, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"unique_id": "macro.dbt.default__get_incremental_default_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8182049, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"unique_id": "macro.dbt.get_insert_into_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.818588, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8260128, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.834154, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.835969, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.837696, "supported_languages": null}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.838923, "supported_languages": null}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8426921, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8435168, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.843792, "supported_languages": null}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.844416, "supported_languages": null}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8450072, "supported_languages": null}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.848874, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.849484, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8497999, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.852015, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.852594, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.852822, "supported_languages": null}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.853066, "supported_languages": null}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8534248, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparision later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.858248, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.865078, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.866338, "supported_languages": null}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.866664, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.867327, "supported_languages": null}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.867593, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.867771, "supported_languages": null}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.868117, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.868321, "supported_languages": null}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8685691, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.868738, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.86944, "supported_languages": null}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.869704, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.871603, "supported_languages": null}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.872375, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.872706, "supported_languages": null}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8735318, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.873905, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8743098, "supported_languages": null}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8749619, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.875338, "supported_languages": null}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8759198, "supported_languages": null}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.876422, "supported_languages": null}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.876846, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.877721, "supported_languages": null}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.879883, "supported_languages": null}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.880831, "supported_languages": null}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.881263, "supported_languages": null}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.884004, "supported_languages": null}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.88567, "supported_languages": null}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.886709, "supported_languages": null}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8870301, "supported_languages": null}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.887506, "supported_languages": null}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8876102, "supported_languages": null}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.888155, "supported_languages": null}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.888381, "supported_languages": null}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.888813, "supported_languages": null}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.888981, "supported_languages": null}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.889413, "supported_languages": null}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.889557, "supported_languages": null}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.890122, "supported_languages": null}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.890352, "supported_languages": null}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.89075, "supported_languages": null}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8908548, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8913028, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.891497, "supported_languages": null}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.892042, "supported_languages": null}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8924491, "supported_languages": null}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8935602, "supported_languages": null}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.894155, "supported_languages": null}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.894731, "supported_languages": null}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8949609, "supported_languages": null}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8954508, "supported_languages": null}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.895653, "supported_languages": null}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.896109, "supported_languages": null}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.896339, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8967721, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8969972, "supported_languages": null}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8974452, "supported_languages": null}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.897588, "supported_languages": null}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.898085, "supported_languages": null}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.89827, "supported_languages": null}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.8987021, "supported_languages": null}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.898844, "supported_languages": null}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.900214, "supported_languages": null}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.900429, "supported_languages": null}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.900745, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.900961, "supported_languages": null}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.901186, "supported_languages": null}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.901398, "supported_languages": null}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.901629, "supported_languages": null}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9018822, "supported_languages": null}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.902109, "supported_languages": null}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.902325, "supported_languages": null}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.902547, "supported_languages": null}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.902752, "supported_languages": null}, "macro.dbt.type_boolean": {"unique_id": "macro.dbt.type_boolean", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.90298, "supported_languages": null}, "macro.dbt.default__type_boolean": {"unique_id": "macro.dbt.default__type_boolean", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.903179, "supported_languages": null}, "macro.dbt.array_concat": {"unique_id": "macro.dbt.array_concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.903697, "supported_languages": null}, "macro.dbt.default__array_concat": {"unique_id": "macro.dbt.default__array_concat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.903884, "supported_languages": null}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9043121, "supported_languages": null}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.904453, "supported_languages": null}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.90501, "supported_languages": null}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.905386, "supported_languages": null}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9055848, "supported_languages": null}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.906507, "supported_languages": null}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.906762, "supported_languages": null}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "_split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9071958, "supported_languages": null}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.907725, "supported_languages": null}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9078999, "supported_languages": null}, "macro.dbt.array_construct": {"unique_id": "macro.dbt.array_construct", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9084952, "supported_languages": null}, "macro.dbt.default__array_construct": {"unique_id": "macro.dbt.default__array_construct", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.908823, "supported_languages": null}, "macro.dbt.array_append": {"unique_id": "macro.dbt.array_append", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.909287, "supported_languages": null}, "macro.dbt.default__array_append": {"unique_id": "macro.dbt.default__array_append", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.909465, "supported_languages": null}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.910038, "supported_languages": null}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.910291, "supported_languages": null}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.910516, "supported_languages": null}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.910763, "supported_languages": null}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.911477, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9116821, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.911874, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.91201, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"unique_id": "macro.dbt.current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.912234, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9123359, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9125602, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9127948, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.913483, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9137511, "supported_languages": null}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9139671, "supported_languages": null}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.914517, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.91935, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.919638, "supported_languages": null}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.919989, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.92046, "supported_languages": null}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.920827, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.921292, "supported_languages": null}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.921547, "supported_languages": null}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.921862, "supported_languages": null}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.922127, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.922358, "supported_languages": null}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9226508, "supported_languages": null}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.923049, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.923413, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.924224, "supported_languages": null}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.924669, "supported_languages": null}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.924881, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9251661, "supported_languages": null}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.926028, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.926644, "supported_languages": null}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.929016, "supported_languages": null}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9291751, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.929417, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.92957, "supported_languages": null}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.930055, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.930318, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.930461, "supported_languages": null}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9307818, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.931052, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9313731, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.931641, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.931968, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.932945, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.933293, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.933641, "supported_languages": null}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.933974, "supported_languages": null}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.935603, "supported_languages": null}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.936639, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.936886, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.937176, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9374132, "supported_languages": null}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9378, "supported_languages": null}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9384892, "supported_languages": null}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.940622, "supported_languages": null}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.941153, "supported_languages": null}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.941514, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9417422, "supported_languages": null}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9419992, "supported_languages": null}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.942344, "supported_languages": null}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.942632, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.943041, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9432929, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.943517, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.945921, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.946248, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.946677, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.946934, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.947401, "supported_languages": null}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.947714, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.948574, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9489322, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.950028, "supported_languages": null}, "macro.dbt.build_ref_function": {"unique_id": "macro.dbt.build_ref_function", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {%- set resolved = ref(*_ref) -%}\n {%- do ref_dict.update({_ref | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef ref(*args,dbt_load_df_function):\n refs = {{ ref_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9524212, "supported_languages": null}, "macro.dbt.build_source_function": {"unique_id": "macro.dbt.build_source_function", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.953156, "supported_languages": null}, "macro.dbt.build_config_dict": {"unique_id": "macro.dbt.build_config_dict", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {%- for key in model.config.config_keys_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == 'language' -%}\n {%- set value = 'python' -%}\n {%- endif -%}\n {%- set value = model.config[key] -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.953838, "supported_languages": null}, "macro.dbt.py_script_postfix": {"unique_id": "macro.dbt.py_script_postfix", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = '{{ this.database }}'\n schema = '{{ this.schema }}'\n identifier = '{{ this.identifier }}'\n def __repr__(self):\n return '{{ this }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args: ref(*args, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.954435, "supported_languages": null}, "macro.dbt.py_script_comment": {"unique_id": "macro.dbt.py_script_comment", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.954536, "supported_languages": null}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.955456, "supported_languages": null}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.955785, "supported_languages": null}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.956188, "supported_languages": null}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.956585, "supported_languages": null}, "macro.dbt_utils.except": {"unique_id": "macro.dbt_utils.except", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9570382, "supported_languages": null}, "macro.dbt_utils.default__except": {"unique_id": "macro.dbt_utils.default__except", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.957142, "supported_languages": null}, "macro.dbt_utils.bigquery__except": {"unique_id": "macro.dbt_utils.bigquery__except", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.957243, "supported_languages": null}, "macro.dbt_utils.replace": {"unique_id": "macro.dbt_utils.replace", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.957808, "supported_languages": null}, "macro.dbt_utils.default__replace": {"unique_id": "macro.dbt_utils.default__replace", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.958399, "supported_languages": null}, "macro.dbt_utils.concat": {"unique_id": "macro.dbt_utils.concat", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.958837, "supported_languages": null}, "macro.dbt_utils.default__concat": {"unique_id": "macro.dbt_utils.default__concat", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.959006, "supported_languages": null}, "macro.dbt_utils.type_string": {"unique_id": "macro.dbt_utils.type_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.960007, "supported_languages": null}, "macro.dbt_utils.default__type_string": {"unique_id": "macro.dbt_utils.default__type_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9601111, "supported_languages": null}, "macro.dbt_utils.redshift__type_string": {"unique_id": "macro.dbt_utils.redshift__type_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.960213, "supported_languages": null}, "macro.dbt_utils.postgres__type_string": {"unique_id": "macro.dbt_utils.postgres__type_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.960309, "supported_languages": null}, "macro.dbt_utils.snowflake__type_string": {"unique_id": "macro.dbt_utils.snowflake__type_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.960404, "supported_languages": null}, "macro.dbt_utils.type_timestamp": {"unique_id": "macro.dbt_utils.type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.960628, "supported_languages": null}, "macro.dbt_utils.default__type_timestamp": {"unique_id": "macro.dbt_utils.default__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.960726, "supported_languages": null}, "macro.dbt_utils.postgres__type_timestamp": {"unique_id": "macro.dbt_utils.postgres__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.960824, "supported_languages": null}, "macro.dbt_utils.snowflake__type_timestamp": {"unique_id": "macro.dbt_utils.snowflake__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.960922, "supported_languages": null}, "macro.dbt_utils.type_float": {"unique_id": "macro.dbt_utils.type_float", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9611452, "supported_languages": null}, "macro.dbt_utils.default__type_float": {"unique_id": "macro.dbt_utils.default__type_float", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.961243, "supported_languages": null}, "macro.dbt_utils.bigquery__type_float": {"unique_id": "macro.dbt_utils.bigquery__type_float", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.96134, "supported_languages": null}, "macro.dbt_utils.type_numeric": {"unique_id": "macro.dbt_utils.type_numeric", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.961568, "supported_languages": null}, "macro.dbt_utils.default__type_numeric": {"unique_id": "macro.dbt_utils.default__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9616709, "supported_languages": null}, "macro.dbt_utils.bigquery__type_numeric": {"unique_id": "macro.dbt_utils.bigquery__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.961765, "supported_languages": null}, "macro.dbt_utils.type_bigint": {"unique_id": "macro.dbt_utils.type_bigint", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.961992, "supported_languages": null}, "macro.dbt_utils.default__type_bigint": {"unique_id": "macro.dbt_utils.default__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.962178, "supported_languages": null}, "macro.dbt_utils.bigquery__type_bigint": {"unique_id": "macro.dbt_utils.bigquery__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.962276, "supported_languages": null}, "macro.dbt_utils.type_int": {"unique_id": "macro.dbt_utils.type_int", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9624991, "supported_languages": null}, "macro.dbt_utils.default__type_int": {"unique_id": "macro.dbt_utils.default__type_int", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9625978, "supported_languages": null}, "macro.dbt_utils.bigquery__type_int": {"unique_id": "macro.dbt_utils.bigquery__type_int", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.962695, "supported_languages": null}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9634361, "supported_languages": null}, "macro.dbt_utils.cast_array_to_string": {"unique_id": "macro.dbt_utils.cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.964072, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.964266, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.964695, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9648929, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9650319, "supported_languages": null}, "macro.dbt_utils.length": {"unique_id": "macro.dbt_utils.length", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9655302, "supported_languages": null}, "macro.dbt_utils.default__length": {"unique_id": "macro.dbt_utils.default__length", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.965677, "supported_languages": null}, "macro.dbt_utils.redshift__length": {"unique_id": "macro.dbt_utils.redshift__length", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.965815, "supported_languages": null}, "macro.dbt_utils.dateadd": {"unique_id": "macro.dbt_utils.dateadd", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.966659, "supported_languages": null}, "macro.dbt_utils.default__dateadd": {"unique_id": "macro.dbt_utils.default__dateadd", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.966885, "supported_languages": null}, "macro.dbt_utils.bigquery__dateadd": {"unique_id": "macro.dbt_utils.bigquery__dateadd", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.967113, "supported_languages": null}, "macro.dbt_utils.postgres__dateadd": {"unique_id": "macro.dbt_utils.postgres__dateadd", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9673312, "supported_languages": null}, "macro.dbt_utils.redshift__dateadd": {"unique_id": "macro.dbt_utils.redshift__dateadd", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.967604, "supported_languages": null}, "macro.dbt_utils.intersect": {"unique_id": "macro.dbt_utils.intersect", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.968034, "supported_languages": null}, "macro.dbt_utils.default__intersect": {"unique_id": "macro.dbt_utils.default__intersect", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.968137, "supported_languages": null}, "macro.dbt_utils.bigquery__intersect": {"unique_id": "macro.dbt_utils.bigquery__intersect", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.968239, "supported_languages": null}, "macro.dbt_utils.escape_single_quotes": {"unique_id": "macro.dbt_utils.escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9688818, "supported_languages": null}, "macro.dbt_utils.default__escape_single_quotes": {"unique_id": "macro.dbt_utils.default__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.96908, "supported_languages": null}, "macro.dbt_utils.snowflake__escape_single_quotes": {"unique_id": "macro.dbt_utils.snowflake__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.969271, "supported_languages": null}, "macro.dbt_utils.bigquery__escape_single_quotes": {"unique_id": "macro.dbt_utils.bigquery__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.969465, "supported_languages": null}, "macro.dbt_utils.right": {"unique_id": "macro.dbt_utils.right", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9703271, "supported_languages": null}, "macro.dbt_utils.default__right": {"unique_id": "macro.dbt_utils.default__right", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9705229, "supported_languages": null}, "macro.dbt_utils.bigquery__right": {"unique_id": "macro.dbt_utils.bigquery__right", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.970756, "supported_languages": null}, "macro.dbt_utils.snowflake__right": {"unique_id": "macro.dbt_utils.snowflake__right", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.970994, "supported_languages": null}, "macro.dbt_utils.listagg": {"unique_id": "macro.dbt_utils.listagg", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.974529, "supported_languages": null}, "macro.dbt_utils.default__listagg": {"unique_id": "macro.dbt_utils.default__listagg", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.975113, "supported_languages": null}, "macro.dbt_utils.bigquery__listagg": {"unique_id": "macro.dbt_utils.bigquery__listagg", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.975513, "supported_languages": null}, "macro.dbt_utils.postgres__listagg": {"unique_id": "macro.dbt_utils.postgres__listagg", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.976071, "supported_languages": null}, "macro.dbt_utils.redshift__listagg": {"unique_id": "macro.dbt_utils.redshift__listagg", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.977419, "supported_languages": null}, "macro.dbt_utils.datediff": {"unique_id": "macro.dbt_utils.datediff", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.981287, "supported_languages": null}, "macro.dbt_utils.default__datediff": {"unique_id": "macro.dbt_utils.default__datediff", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9815118, "supported_languages": null}, "macro.dbt_utils.bigquery__datediff": {"unique_id": "macro.dbt_utils.bigquery__datediff", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.981733, "supported_languages": null}, "macro.dbt_utils.postgres__datediff": {"unique_id": "macro.dbt_utils.postgres__datediff", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9843688, "supported_languages": null}, "macro.dbt_utils.redshift__datediff": {"unique_id": "macro.dbt_utils.redshift__datediff", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.98468, "supported_languages": null}, "macro.dbt_utils.safe_cast": {"unique_id": "macro.dbt_utils.safe_cast", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.985354, "supported_languages": null}, "macro.dbt_utils.default__safe_cast": {"unique_id": "macro.dbt_utils.default__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.985551, "supported_languages": null}, "macro.dbt_utils.snowflake__safe_cast": {"unique_id": "macro.dbt_utils.snowflake__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9857311, "supported_languages": null}, "macro.dbt_utils.bigquery__safe_cast": {"unique_id": "macro.dbt_utils.bigquery__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.985908, "supported_languages": null}, "macro.dbt_utils.hash": {"unique_id": "macro.dbt_utils.hash", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.986412, "supported_languages": null}, "macro.dbt_utils.default__hash": {"unique_id": "macro.dbt_utils.default__hash", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.98661, "supported_languages": null}, "macro.dbt_utils.bigquery__hash": {"unique_id": "macro.dbt_utils.bigquery__hash", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.986791, "supported_languages": null}, "macro.dbt_utils.cast_bool_to_text": {"unique_id": "macro.dbt_utils.cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.987314, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.98751, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9877062, "supported_languages": null}, "macro.dbt_utils.identifier": {"unique_id": "macro.dbt_utils.identifier", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.988467, "supported_languages": null}, "macro.dbt_utils.default__identifier": {"unique_id": "macro.dbt_utils.default__identifier", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9886148, "supported_languages": null}, "macro.dbt_utils.bigquery__identifier": {"unique_id": "macro.dbt_utils.bigquery__identifier", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.98875, "supported_languages": null}, "macro.dbt_utils.any_value": {"unique_id": "macro.dbt_utils.any_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.989237, "supported_languages": null}, "macro.dbt_utils.default__any_value": {"unique_id": "macro.dbt_utils.default__any_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.989385, "supported_languages": null}, "macro.dbt_utils.postgres__any_value": {"unique_id": "macro.dbt_utils.postgres__any_value", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.989537, "supported_languages": null}, "macro.dbt_utils.position": {"unique_id": "macro.dbt_utils.position", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.990134, "supported_languages": null}, "macro.dbt_utils.default__position": {"unique_id": "macro.dbt_utils.default__position", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.990324, "supported_languages": null}, "macro.dbt_utils.bigquery__position": {"unique_id": "macro.dbt_utils.bigquery__position", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.990509, "supported_languages": null}, "macro.dbt_utils.string_literal": {"unique_id": "macro.dbt_utils.string_literal", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9910321, "supported_languages": null}, "macro.dbt_utils.default__string_literal": {"unique_id": "macro.dbt_utils.default__string_literal", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.991174, "supported_languages": null}, "macro.dbt_utils.current_timestamp": {"unique_id": "macro.dbt_utils.current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.992024, "supported_languages": null}, "macro.dbt_utils.default__current_timestamp": {"unique_id": "macro.dbt_utils.default__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.992182, "supported_languages": null}, "macro.dbt_utils.redshift__current_timestamp": {"unique_id": "macro.dbt_utils.redshift__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9922812, "supported_languages": null}, "macro.dbt_utils.bigquery__current_timestamp": {"unique_id": "macro.dbt_utils.bigquery__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.992385, "supported_languages": null}, "macro.dbt_utils.current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.992616, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9927769, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.992982, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9931378, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.993321, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9954329, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.996143, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.996799, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.997067, "supported_languages": null}, "macro.dbt_utils.array_concat": {"unique_id": "macro.dbt_utils.array_concat", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.997683, "supported_languages": null}, "macro.dbt_utils.default__array_concat": {"unique_id": "macro.dbt_utils.default__array_concat", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.99787, "supported_languages": null}, "macro.dbt_utils.bigquery__array_concat": {"unique_id": "macro.dbt_utils.bigquery__array_concat", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.998048, "supported_languages": null}, "macro.dbt_utils.redshift__array_concat": {"unique_id": "macro.dbt_utils.redshift__array_concat", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.998225, "supported_languages": null}, "macro.dbt_utils.bool_or": {"unique_id": "macro.dbt_utils.bool_or", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.998774, "supported_languages": null}, "macro.dbt_utils.default__bool_or": {"unique_id": "macro.dbt_utils.default__bool_or", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.9989161, "supported_languages": null}, "macro.dbt_utils.snowflake__bool_or": {"unique_id": "macro.dbt_utils.snowflake__bool_or", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.999145, "supported_languages": null}, "macro.dbt_utils.bigquery__bool_or": {"unique_id": "macro.dbt_utils.bigquery__bool_or", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602840.999284, "supported_languages": null}, "macro.dbt_utils.last_day": {"unique_id": "macro.dbt_utils.last_day", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.000143, "supported_languages": null}, "macro.dbt_utils.default_last_day": {"unique_id": "macro.dbt_utils.default_last_day", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0005288, "supported_languages": null}, "macro.dbt_utils.default__last_day": {"unique_id": "macro.dbt_utils.default__last_day", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.000739, "supported_languages": null}, "macro.dbt_utils.postgres__last_day": {"unique_id": "macro.dbt_utils.postgres__last_day", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0013142, "supported_languages": null}, "macro.dbt_utils.redshift__last_day": {"unique_id": "macro.dbt_utils.redshift__last_day", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.00157, "supported_languages": null}, "macro.dbt_utils.split_part": {"unique_id": "macro.dbt_utils.split_part", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.003766, "supported_languages": null}, "macro.dbt_utils.default__split_part": {"unique_id": "macro.dbt_utils.default__split_part", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.004003, "supported_languages": null}, "macro.dbt_utils._split_part_negative": {"unique_id": "macro.dbt_utils._split_part_negative", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.004336, "supported_languages": null}, "macro.dbt_utils.postgres__split_part": {"unique_id": "macro.dbt_utils.postgres__split_part", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.004819, "supported_languages": null}, "macro.dbt_utils.redshift__split_part": {"unique_id": "macro.dbt_utils.redshift__split_part", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.005312, "supported_languages": null}, "macro.dbt_utils.bigquery__split_part": {"unique_id": "macro.dbt_utils.bigquery__split_part", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0058188, "supported_languages": null}, "macro.dbt_utils.date_trunc": {"unique_id": "macro.dbt_utils.date_trunc", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.006403, "supported_languages": null}, "macro.dbt_utils.default__date_trunc": {"unique_id": "macro.dbt_utils.default__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.006589, "supported_languages": null}, "macro.dbt_utils.bigquery__date_trunc": {"unique_id": "macro.dbt_utils.bigquery__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.006777, "supported_languages": null}, "macro.dbt_utils.array_construct": {"unique_id": "macro.dbt_utils.array_construct", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0076108, "supported_languages": null}, "macro.dbt_utils.default__array_construct": {"unique_id": "macro.dbt_utils.default__array_construct", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0079591, "supported_languages": null}, "macro.dbt_utils.snowflake__array_construct": {"unique_id": "macro.dbt_utils.snowflake__array_construct", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.008163, "supported_languages": null}, "macro.dbt_utils.redshift__array_construct": {"unique_id": "macro.dbt_utils.redshift__array_construct", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.00835, "supported_languages": null}, "macro.dbt_utils.bigquery__array_construct": {"unique_id": "macro.dbt_utils.bigquery__array_construct", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.008539, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0099142, "supported_languages": null}, "macro.dbt_utils.array_append": {"unique_id": "macro.dbt_utils.array_append", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.01052, "supported_languages": null}, "macro.dbt_utils.default__array_append": {"unique_id": "macro.dbt_utils.default__array_append", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0107038, "supported_languages": null}, "macro.dbt_utils.bigquery__array_append": {"unique_id": "macro.dbt_utils.bigquery__array_append", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.010965, "supported_languages": null}, "macro.dbt_utils.redshift__array_append": {"unique_id": "macro.dbt_utils.redshift__array_append", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.01123, "supported_languages": null}, "macro.dbt_utils.get_period_boundaries": {"unique_id": "macro.dbt_utils.get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.020072, "supported_languages": null}, "macro.dbt_utils.default__get_period_boundaries": {"unique_id": "macro.dbt_utils.default__get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0208588, "supported_languages": null}, "macro.dbt_utils.get_period_sql": {"unique_id": "macro.dbt_utils.get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.021328, "supported_languages": null}, "macro.dbt_utils.default__get_period_sql": {"unique_id": "macro.dbt_utils.default__get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.02202, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.029484, "supported_languages": ["sql"]}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0301938, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.030891, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0317051, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.032882, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.033535, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0339909, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.034799, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.035132, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.035743, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0361621, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.037096, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0375628, "supported_languages": null}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.038187, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.038645, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.03916, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.039393, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.040286, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.041039, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.041888, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.042571, "supported_languages": null}, "macro.dbt_utils.test_unique_where": {"unique_id": "macro.dbt_utils.test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.043485, "supported_languages": null}, "macro.dbt_utils.default__test_unique_where": {"unique_id": "macro.dbt_utils.default__test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.043749, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.044373, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.044675, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.045661, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.046645, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.047482, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0479739, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.048707, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.04912, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.04979, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0505269, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.051541, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0525482, "supported_languages": null}, "macro.dbt_utils.test_not_null_where": {"unique_id": "macro.dbt_utils.test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.053262, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.053501, "supported_languages": null}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.054582, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0558689, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.060391, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.062519, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.063006, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.063256, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.063777, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0640771, "supported_languages": null}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.064544, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.064801, "supported_languages": null}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0655801, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.066656, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.067513, "supported_languages": null}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0678551, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.068374, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.068979, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.069589, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.070648, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.071877, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.073119, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.073714, "supported_languages": null}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.073984, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0748942, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0760572, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0772638, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.077941, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.078343, "supported_languages": null}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.079378, "supported_languages": null}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0807848, "supported_languages": null}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.083337, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.086745, "supported_languages": null}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.090733, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.095309, "supported_languages": null}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.0959349, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.09631, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.099905, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1002429, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.100545, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.100818, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.101058, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.101305, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.10228, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1037061, "supported_languages": null}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.104376, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.104792, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.105356, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.105833, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.108145, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.108547, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.109665, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1104078, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.112076, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1142368, "supported_languages": null}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.11584, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.117065, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.117826, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1188638, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.119494, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1203442, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.121096, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.121218, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.121334, "supported_languages": null}, "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/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1214561, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1229692, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.123373, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1251771, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1264231, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.12708, "supported_languages": null}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1284668, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1286972, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1289248, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.12915, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.129351, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.129571, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.130253, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.131347, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.133139, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.133497, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1338408, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.134172, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.134499, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1349602, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.135405, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.13602, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.136168, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.136311, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.136569, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1371882, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.138099, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.139052, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1397839, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.139978, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1401641, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.140345, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.140537, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.144781, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.145014, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.145238, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.145453, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1480021, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.149345, "supported_languages": null}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1495428, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.149935, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.150348, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1505358, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.150721, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.150895, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.151687, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.152511, "supported_languages": null}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.153288, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.153575, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.153883, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.154328, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.155641, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.161536, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1620429, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1627772, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1650062, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.165765, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1666381, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1670341, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.167319, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.167583, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.167808, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.168051, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.169313, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.170832, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1719198, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.172151, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1723762, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.172601, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.172822, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.173079, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.173533, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.173676, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.173932, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.174946, "supported_languages": null}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1767712, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.179266, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.181364, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.181827, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.181972, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.182112, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.182774, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/avinash.kunnath/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, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.183402, "supported_languages": null}, "macro.quickbooks_source.get_deposit_line_columns": {"unique_id": "macro.quickbooks_source.get_deposit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_check_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_tax_applicable_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_transaction_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"detail_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"transfer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.187525, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.1906528, "supported_languages": null}, "macro.quickbooks_source.get_account_columns": {"unique_id": "macro.quickbooks_source.get_account_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balance_with_sub_accounts\", \"datatype\": dbt.type_float()},\n {\"name\": \"classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_account\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.193669, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.19487, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.199007, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.200073, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_credit_card_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"linked_bill_payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.2024078, "supported_languages": null}, "macro.quickbooks_source.get_transfer_columns": {"unique_id": "macro.quickbooks_source.get_transfer_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"from_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.2042391, "supported_languages": null}, "macro.quickbooks_source.get_purchase_columns": {"unique_id": "macro.quickbooks_source.get_purchase_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"remit_to_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.208547, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"posting_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_applicable_on\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.211624, "supported_languages": null}, "macro.quickbooks_source.get_deposit_columns": {"unique_id": "macro.quickbooks_source.get_deposit_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"cash_back_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"cash_back_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"cash_back_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.2146938, "supported_languages": null}, "macro.quickbooks_source.get_purchase_order_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_customer_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_po_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.2190552, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.2230668, "supported_languages": null}, "macro.quickbooks_source.get_journal_entry_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"adjustment\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.225683, "supported_languages": null}, "macro.quickbooks_source.get_vendor_columns": {"unique_id": "macro.quickbooks_source.get_vendor_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"company_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"other_contacts\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_identifier\", \"datatype\": dbt.type_string()},\n {\"name\": \"term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_1099\", \"datatype\": \"boolean\"},\n {\"name\": \"web_url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.23029, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"charge_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"reimburse_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"statement_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_activity_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.232055, "supported_languages": null}, "macro.quickbooks_source.get_item_columns": {"unique_id": "macro.quickbooks_source.get_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"asset_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inventory_start_date\", \"datatype\": \"date\"},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"quantity_on_hand\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"stock_keeping_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_item\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"track_quantity_on_hand\", \"datatype\": \"boolean\"},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.236365, "supported_languages": null}, "macro.quickbooks_source.get_credit_memo_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"remaining_credit\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.241293, "supported_languages": null}, "macro.quickbooks_source.get_bundle_item_columns": {"unique_id": "macro.quickbooks_source.get_bundle_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_quantity\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.242232, "supported_languages": null}, "macro.quickbooks_source.get_payment_columns": {"unique_id": "macro.quickbooks_source.get_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"receivable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"unapplied_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.24738, "supported_languages": null}, "macro.quickbooks_source.get_vendor_credit_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.250317, "supported_languages": null}, "macro.quickbooks_source.get_refund_receipt_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_bank_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_check_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_payment_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.258404, "supported_languages": null}, "macro.quickbooks_source.get_bill_columns": {"unique_id": "macro.quickbooks_source.get_bill_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": \"date\"},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.2618701, "supported_languages": null}, "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/avinash.kunnath/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.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bank_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.263981, "supported_languages": null}, "macro.quickbooks_source.get_bill_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.266994, "supported_languages": null}, "macro.quickbooks_source.get_customer_columns": {"unique_id": "macro.quickbooks_source.get_customer_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"ar_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balance_with_jobs\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bill_with_parent\", \"datatype\": \"boolean\"},\n {\"name\": \"company_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"default_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job\", \"datatype\": \"boolean\"},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"open_balance_date\", \"datatype\": \"date\"},\n {\"name\": \"parent_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"preferred_delivery_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"resale_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_exemption_reason_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"website\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.273566, "supported_languages": null}, "macro.quickbooks_source.get_invoice_columns": {"unique_id": "macro.quickbooks_source.get_invoice_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.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.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_bcc_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_cc_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"custom_sales_rep\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit\", \"datatype\": dbt.type_float()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.280915, "supported_languages": null}, "macro.quickbooks_source.get_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"check_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.2829928, "supported_languages": null}, "macro.quickbooks_source.get_department_columns": {"unique_id": "macro.quickbooks_source.get_department_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_department\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.2846878, "supported_languages": null}, "macro.quickbooks_source.get_invoice_line_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.289471, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.292655, "supported_languages": null}, "macro.quickbooks_source.get_purchase_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.29568, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.299499, "supported_languages": null}, "macro.quickbooks_source.get_estimate_columns": {"unique_id": "macro.quickbooks_source.get_estimate_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"accepted_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"accepted_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"expiration_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.305116, "supported_languages": null}, "macro.quickbooks_source.get_bill_payment_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"check_bank_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"check_print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"process_bill_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.308301, "supported_languages": null}, "macro.quickbooks_source.get_sales_receipt_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": \"date\"},\n {\"name\": \"delivery_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt.type_string()},\n {\"name\": \"ship_date\", \"datatype\": \"date\"},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.316072, "supported_languages": null}, "macro.quickbooks_source.get_bundle_columns": {"unique_id": "macro.quickbooks_source.get_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"print_grouped_items\", \"datatype\": \"boolean\"},\n {\"name\": \"purchase_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"sync_token\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.3182411, "supported_languages": null}, "macro.quickbooks_source.get_estimate_line_columns": {"unique_id": "macro.quickbooks_source.get_estimate_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.3230588, "supported_languages": null}, "macro.quickbooks_source.get_address_columns": {"unique_id": "macro.quickbooks_source.get_address_columns", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_sub_division_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_3\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_4\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_5\", \"datatype\": dbt.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt.type_string()},\n {\"name\": \"postal_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.3254452, "supported_languages": null}, "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/avinash.kunnath/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.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"discount_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"discount_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"index\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoice_line_index\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_num\", \"datatype\": dbt.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1674602841.328789, "supported_languages": null}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/usr/local/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "quickbooks_source.account_table": {"unique_id": "quickbooks_source.account_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_table", "block_contents": "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."}, "quickbooks_source.address_table": {"unique_id": "quickbooks_source.address_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "address_table", "block_contents": "Table containing address details."}, "quickbooks_source.bill_line_table": {"unique_id": "quickbooks_source.bill_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_line_table", "block_contents": "Table containing distinct line items from bills within the `bill` table."}, "quickbooks_source.bill_linked_txn_table": {"unique_id": "quickbooks_source.bill_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_linked_txn_table", "block_contents": "Mapping table containing bill payment transactions linked to a bill."}, "quickbooks_source.bill_payment_line_table": {"unique_id": "quickbooks_source.bill_payment_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_payment_line_table", "block_contents": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table."}, "quickbooks_source.bill_payment_table": {"unique_id": "quickbooks_source.bill_payment_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_payment_table", "block_contents": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor."}, "quickbooks_source.bill_table": {"unique_id": "quickbooks_source.bill_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bill_table", "block_contents": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both."}, "quickbooks_source.bundle_item_table": {"unique_id": "quickbooks_source.bundle_item_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bundle_item_table", "block_contents": "Mapping table containing all bundle and item combinations."}, "quickbooks_source.bundle_table": {"unique_id": "quickbooks_source.bundle_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bundle_table", "block_contents": "Table containing all bundles possible to be used within an invoice."}, "quickbooks_source.credit_card_payment_txn_table": {"unique_id": "quickbooks_source.credit_card_payment_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_card_payment_txn_table", "block_contents": "Table containing all credit card payment transactions."}, "quickbooks_source.credit_memo_line_table": {"unique_id": "quickbooks_source.credit_memo_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_memo_line_table", "block_contents": "Table containing individual records of credit memos."}, "quickbooks_source.credit_memo_table": {"unique_id": "quickbooks_source.credit_memo_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "credit_memo_table", "block_contents": "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."}, "quickbooks_source.customer_table": {"unique_id": "quickbooks_source.customer_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_table", "block_contents": "Table containing customers of which are consumers of the service or product that your business offers."}, "quickbooks_source.department_table": {"unique_id": "quickbooks_source.department_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_table", "block_contents": "Table containing records representing physical locations such as stores, and sales regions."}, "quickbooks_source.deposit_line_table": {"unique_id": "quickbooks_source.deposit_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deposit_line_table", "block_contents": "Table containing individual line items comprising the deposit."}, "quickbooks_source.deposit_table": {"unique_id": "quickbooks_source.deposit_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "deposit_table", "block_contents": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit."}, "quickbooks_source.estimate_line_table": {"unique_id": "quickbooks_source.estimate_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "estimate_line_table", "block_contents": "Table containing line item records of an estimate."}, "quickbooks_source.estimate_table": {"unique_id": "quickbooks_source.estimate_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "estimate_table", "block_contents": "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."}, "quickbooks_source.invoice_line_bundle_table": {"unique_id": "quickbooks_source.invoice_line_bundle_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_line_bundle_table", "block_contents": "Table containing lines of an invoice which were bundled."}, "quickbooks_source.invoice_line_table": {"unique_id": "quickbooks_source.invoice_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_line_table", "block_contents": "Table containing individual records from invoices."}, "quickbooks_source.invoice_linked_txn_table": {"unique_id": "quickbooks_source.invoice_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_linked_txn_table", "block_contents": "Mapping table for invoices records to respective estimate and payment objects."}, "quickbooks_source.invoice_table": {"unique_id": "quickbooks_source.invoice_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "invoice_table", "block_contents": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later."}, "quickbooks_source.item_table": {"unique_id": "quickbooks_source.item_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_table", "block_contents": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services."}, "quickbooks_source.journal_entry_line_table": {"unique_id": "quickbooks_source.journal_entry_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "journal_entry_line_table", "block_contents": "Table containing individual line items of a transaction associated with a journal entry."}, "quickbooks_source.journal_entry_table": {"unique_id": "quickbooks_source.journal_entry_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "journal_entry_table", "block_contents": "Table containing journal entry transactions."}, "quickbooks_source.payment_line_table": {"unique_id": "quickbooks_source.payment_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "payment_line_table", "block_contents": "Table containing individual line items recorded within a payment."}, "quickbooks_source.payment_table": {"unique_id": "quickbooks_source.payment_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "payment_table", "block_contents": "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."}, "quickbooks_source.purchase_line_table": {"unique_id": "quickbooks_source.purchase_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_line_table", "block_contents": "Table containing individual line items of a transaction associated with a purchase."}, "quickbooks_source.purchase_order_line_table": {"unique_id": "quickbooks_source.purchase_order_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_line_table", "block_contents": "Table containing individual line items of a transaction associated with a purchase order."}, "quickbooks_source.purchase_order_linked_txn_table": {"unique_id": "quickbooks_source.purchase_order_linked_txn_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_linked_txn_table", "block_contents": "Mapping table for purchase order records to respective bill and purchase objects."}, "quickbooks_source.purchase_order_table": {"unique_id": "quickbooks_source.purchase_order_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_order_table", "block_contents": "Table containing records of purchase orders (PO)."}, "quickbooks_source.purchase_table": {"unique_id": "quickbooks_source.purchase_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "purchase_table", "block_contents": "Table containing records of purchase expenses."}, "quickbooks_source.refund_receipt_line_table": {"unique_id": "quickbooks_source.refund_receipt_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "refund_receipt_line_table", "block_contents": "Table containing individual line items of a refund transaction."}, "quickbooks_source.refund_receipt_table": {"unique_id": "quickbooks_source.refund_receipt_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "refund_receipt_table", "block_contents": "Table containing refunds to the customer for a product or service that was provided."}, "quickbooks_source.sales_receipt_line_table": {"unique_id": "quickbooks_source.sales_receipt_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "sales_receipt_line_table", "block_contents": "Table containing individual line items of a sales transaction."}, "quickbooks_source.sales_receipt_table": {"unique_id": "quickbooks_source.sales_receipt_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "sales_receipt_table", "block_contents": "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."}, "quickbooks_source.transfer_table": {"unique_id": "quickbooks_source.transfer_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transfer_table", "block_contents": "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."}, "quickbooks_source.vendor_credit_line_table": {"unique_id": "quickbooks_source.vendor_credit_line_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_credit_line_table", "block_contents": "Table containing individual vendor credit line items."}, "quickbooks_source.vendor_credit_table": {"unique_id": "quickbooks_source.vendor_credit_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_credit_table", "block_contents": "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."}, "quickbooks_source.vendor_table": {"unique_id": "quickbooks_source.vendor_table", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_table", "block_contents": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product."}, "quickbooks_source.account_id": {"unique_id": "quickbooks_source.account_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_id", "block_contents": "The identifier of the account associated"}, "quickbooks_source.amount": {"unique_id": "quickbooks_source.amount", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "amount", "block_contents": "Monetary amount of"}, "quickbooks_source.class_id": {"unique_id": "quickbooks_source.class_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "class_id", "block_contents": "Reference to the class associated"}, "quickbooks_source.created_at": {"unique_id": "quickbooks_source.created_at", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "created_at", "block_contents": "Timestamp of the creation date"}, "quickbooks_source.currency_id": {"unique_id": "quickbooks_source.currency_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currency_id", "block_contents": "Reference to the currency"}, "quickbooks_source.customer_id": {"unique_id": "quickbooks_source.customer_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_id", "block_contents": "Reference to the customer associated"}, "quickbooks_source.department_id": {"unique_id": "quickbooks_source.department_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_id", "block_contents": "Reference to the department"}, "quickbooks_source.id": {"unique_id": "quickbooks_source.id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "id", "block_contents": "Unique identifier of the"}, "quickbooks_source.item_id": {"unique_id": "quickbooks_source.item_id", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_id", "block_contents": "Reference to the item"}, "quickbooks_source._fivetran_deleted": {"unique_id": "quickbooks_source._fivetran_deleted", "package_name": "quickbooks_source", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_deleted", "block_contents": "Boolean created by Fivetran to indicate whether the record has been deleted."}}, "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": ["source.quickbooks_source.quickbooks.vendor_credit"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["source.quickbooks_source.quickbooks.refund_receipt_line"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["source.quickbooks_source.quickbooks.estimate_line"], "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": ["source.quickbooks_source.quickbooks.purchase_order_line"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["source.quickbooks_source.quickbooks.credit_memo_line"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["source.quickbooks_source.quickbooks.journal_entry"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["source.quickbooks_source.quickbooks.invoice_line_bundle"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["source.quickbooks_source.quickbooks.payment"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["source.quickbooks_source.quickbooks.invoice_line"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["source.quickbooks_source.quickbooks.deposit_line"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["source.quickbooks_source.quickbooks.customer"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["source.quickbooks_source.quickbooks.bill_line"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["source.quickbooks_source.quickbooks.item"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["source.quickbooks_source.quickbooks.account"], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp": ["source.quickbooks_source.quickbooks.credit_card_payment_txn"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["source.quickbooks_source.quickbooks.vendor_credit_line"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["source.quickbooks_source.quickbooks.department"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["source.quickbooks_source.quickbooks.bundle"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["source.quickbooks_source.quickbooks.bundle_item"], "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": ["source.quickbooks_source.quickbooks.purchase_order"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["source.quickbooks_source.quickbooks.bill_payment_line"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["source.quickbooks_source.quickbooks.estimate"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["source.quickbooks_source.quickbooks.purchase"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["source.quickbooks_source.quickbooks.credit_memo"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["source.quickbooks_source.quickbooks.bill"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["source.quickbooks_source.quickbooks.transfer"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["source.quickbooks_source.quickbooks.vendor"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["source.quickbooks_source.quickbooks.purchase_line"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["source.quickbooks_source.quickbooks.address"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["source.quickbooks_source.quickbooks.payment_line"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["source.quickbooks_source.quickbooks.refund_receipt"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["source.quickbooks_source.quickbooks.sales_receipt"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["source.quickbooks_source.quickbooks.bill_payment"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["source.quickbooks_source.quickbooks.journal_entry_line"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["source.quickbooks_source.quickbooks.deposit"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["source.quickbooks_source.quickbooks.bill_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["source.quickbooks_source.quickbooks.invoice_linked_txn"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["source.quickbooks_source.quickbooks.sales_receipt_line"], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": ["source.quickbooks_source.quickbooks.purchase_order_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["source.quickbooks_source.quickbooks.invoice"], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": ["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.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": ["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.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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": ["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.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": ["model.quickbooks_source.stg_quickbooks__vendor"], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": ["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": [], "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": ["test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784"], "model.quickbooks_source.stg_quickbooks__transfer": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e", "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150"], "model.quickbooks_source.stg_quickbooks__payment_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5", "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26"], "model.quickbooks_source.stg_quickbooks__vendor": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a", "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327", "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f"], "model.quickbooks_source.stg_quickbooks__estimate": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882", "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186", "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b"], "model.quickbooks_source.stg_quickbooks__bundle": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc", "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60"], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5", "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e", "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40", "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca", "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152"], "model.quickbooks_source.stg_quickbooks__purchase_order": ["test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065", "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8", "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5", "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde", "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a"], "model.quickbooks_source.stg_quickbooks__purchase_order_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13", "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044", "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630", "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0", "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a", "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d"], "model.quickbooks_source.stg_quickbooks__payment": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e", "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953", "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014", "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c"], "model.quickbooks_source.stg_quickbooks__bill": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf", "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8"], "model.quickbooks_source.stg_quickbooks__bill_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062", "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"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d", "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985", "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"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d"], "model.quickbooks_source.stg_quickbooks__deposit": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908", "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1"], "model.quickbooks_source.stg_quickbooks__item": ["test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6", "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9"], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568", "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723"], "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.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.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a": [], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062": [], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca": [], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953": [], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044": [], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6": [], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232": [], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5": [], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "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.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde": [], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": [], "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a": [], "source.quickbooks_source.quickbooks.account": ["model.quickbooks_source.stg_quickbooks__account_tmp"], "source.quickbooks_source.quickbooks.address": ["model.quickbooks_source.stg_quickbooks__address_tmp"], "source.quickbooks_source.quickbooks.bill_line": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "source.quickbooks_source.quickbooks.bill_linked_txn": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "source.quickbooks_source.quickbooks.bill_payment_line": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "source.quickbooks_source.quickbooks.bill_payment": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "source.quickbooks_source.quickbooks.bill": ["model.quickbooks_source.stg_quickbooks__bill_tmp"], "source.quickbooks_source.quickbooks.bundle_item": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "source.quickbooks_source.quickbooks.bundle": ["model.quickbooks_source.stg_quickbooks__bundle_tmp"], "source.quickbooks_source.quickbooks.credit_card_payment_txn": ["model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp"], "source.quickbooks_source.quickbooks.credit_memo_line": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "source.quickbooks_source.quickbooks.credit_memo": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "source.quickbooks_source.quickbooks.customer": ["model.quickbooks_source.stg_quickbooks__customer_tmp"], "source.quickbooks_source.quickbooks.department": ["model.quickbooks_source.stg_quickbooks__department_tmp"], "source.quickbooks_source.quickbooks.deposit_line": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "source.quickbooks_source.quickbooks.deposit": ["model.quickbooks_source.stg_quickbooks__deposit_tmp"], "source.quickbooks_source.quickbooks.estimate": ["model.quickbooks_source.stg_quickbooks__estimate_tmp"], "source.quickbooks_source.quickbooks.estimate_line": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "source.quickbooks_source.quickbooks.invoice_linked_txn": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "source.quickbooks_source.quickbooks.invoice_line": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "source.quickbooks_source.quickbooks.invoice_line_bundle": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "source.quickbooks_source.quickbooks.invoice": ["model.quickbooks_source.stg_quickbooks__invoice_tmp"], "source.quickbooks_source.quickbooks.item": ["model.quickbooks_source.stg_quickbooks__item_tmp"], "source.quickbooks_source.quickbooks.journal_entry_line": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "source.quickbooks_source.quickbooks.journal_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "source.quickbooks_source.quickbooks.payment_line": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "source.quickbooks_source.quickbooks.payment": ["model.quickbooks_source.stg_quickbooks__payment_tmp"], "source.quickbooks_source.quickbooks.purchase_line": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "source.quickbooks_source.quickbooks.purchase": ["model.quickbooks_source.stg_quickbooks__purchase_tmp"], "source.quickbooks_source.quickbooks.purchase_order_line": ["model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp"], "source.quickbooks_source.quickbooks.purchase_order": ["model.quickbooks_source.stg_quickbooks__purchase_order_tmp"], "source.quickbooks_source.quickbooks.refund_receipt_line": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "source.quickbooks_source.quickbooks.refund_receipt": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "source.quickbooks_source.quickbooks.sales_receipt_line": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "source.quickbooks_source.quickbooks.sales_receipt": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "source.quickbooks_source.quickbooks.transfer": ["model.quickbooks_source.stg_quickbooks__transfer_tmp"], "source.quickbooks_source.quickbooks.vendor_credit_line": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "source.quickbooks_source.quickbooks.vendor_credit": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "source.quickbooks_source.quickbooks.vendor": ["model.quickbooks_source.stg_quickbooks__vendor_tmp"]}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index fdd131f..6b6fe6a 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.3.0", "generated_at": "2023-01-23T19:36:30.093754Z", "invocation_id": "731b7ac4-8409-423b-8abe-8e1252f8e64c", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.658495Z", "completed_at": "2023-01-23T19:36:17.731919Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.732638Z", "completed_at": "2023-01-23T19:36:17.732659Z"}], "thread_id": "Thread-1", "execution_time": 0.07730293273925781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.717753Z", "completed_at": "2023-01-23T19:36:17.732448Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.733876Z", "completed_at": "2023-01-23T19:36:17.733884Z"}], "thread_id": "Thread-3", "execution_time": 0.07743406295776367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.658948Z", "completed_at": "2023-01-23T19:36:17.732757Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.734392Z", "completed_at": "2023-01-23T19:36:17.734399Z"}], "thread_id": "Thread-2", "execution_time": 0.0788428783416748, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.717876Z", "completed_at": "2023-01-23T19:36:17.732846Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.734517Z", "completed_at": "2023-01-23T19:36:17.734522Z"}], "thread_id": "Thread-4", "execution_time": 0.07805180549621582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.737798Z", "completed_at": "2023-01-23T19:36:17.753482Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.758711Z", "completed_at": "2023-01-23T19:36:17.758722Z"}], "thread_id": "Thread-1", "execution_time": 0.02424907684326172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.743550Z", "completed_at": "2023-01-23T19:36:17.758836Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.760115Z", "completed_at": "2023-01-23T19:36:17.760121Z"}], "thread_id": "Thread-3", "execution_time": 0.023649930953979492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.743712Z", "completed_at": "2023-01-23T19:36:17.759617Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.761268Z", "completed_at": "2023-01-23T19:36:17.761276Z"}], "thread_id": "Thread-2", "execution_time": 0.024159908294677734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.743989Z", "completed_at": "2023-01-23T19:36:17.759847Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.761519Z", "completed_at": "2023-01-23T19:36:17.761523Z"}], "thread_id": "Thread-4", "execution_time": 0.024487972259521484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.762386Z", "completed_at": "2023-01-23T19:36:17.769634Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.774478Z", "completed_at": "2023-01-23T19:36:17.774488Z"}], "thread_id": "Thread-1", "execution_time": 0.02462911605834961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.769526Z", "completed_at": "2023-01-23T19:36:17.784449Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.786076Z", "completed_at": "2023-01-23T19:36:17.786084Z"}], "thread_id": "Thread-3", "execution_time": 0.024096012115478516, "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": "2023-01-23T19:36:17.774161Z", "completed_at": "2023-01-23T19:36:17.785675Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.787488Z", "completed_at": "2023-01-23T19:36:17.787494Z"}], "thread_id": "Thread-2", "execution_time": 0.019726037979125977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.774320Z", "completed_at": "2023-01-23T19:36:17.785902Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.787596Z", "completed_at": "2023-01-23T19:36:17.787601Z"}], "thread_id": "Thread-4", "execution_time": 0.019805908203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.787948Z", "completed_at": "2023-01-23T19:36:17.794493Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.799672Z", "completed_at": "2023-01-23T19:36:17.799684Z"}], "thread_id": "Thread-1", "execution_time": 0.02322101593017578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.794687Z", "completed_at": "2023-01-23T19:36:17.809587Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.810896Z", "completed_at": "2023-01-23T19:36:17.810902Z"}], "thread_id": "Thread-3", "execution_time": 0.02249598503112793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.799502Z", "completed_at": "2023-01-23T19:36:17.810704Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.811774Z", "completed_at": "2023-01-23T19:36:17.811779Z"}], "thread_id": "Thread-4", "execution_time": 0.022816896438598633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.799329Z", "completed_at": "2023-01-23T19:36:17.810817Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.811930Z", "completed_at": "2023-01-23T19:36:17.811941Z"}], "thread_id": "Thread-2", "execution_time": 0.023619890213012695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.811677Z", "completed_at": "2023-01-23T19:36:17.818872Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.824097Z", "completed_at": "2023-01-23T19:36:17.824109Z"}], "thread_id": "Thread-1", "execution_time": 0.01844501495361328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.819241Z", "completed_at": "2023-01-23T19:36:17.829049Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.834875Z", "completed_at": "2023-01-23T19:36:17.834884Z"}], "thread_id": "Thread-3", "execution_time": 0.01803112030029297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.823932Z", "completed_at": "2023-01-23T19:36:17.834358Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.835775Z", "completed_at": "2023-01-23T19:36:17.835780Z"}], "thread_id": "Thread-4", "execution_time": 0.018012046813964844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.824221Z", "completed_at": "2023-01-23T19:36:17.835095Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.836848Z", "completed_at": "2023-01-23T19:36:17.836861Z"}], "thread_id": "Thread-2", "execution_time": 0.0245969295501709, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.835971Z", "completed_at": "2023-01-23T19:36:17.844580Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.849884Z", "completed_at": "2023-01-23T19:36:17.849894Z"}], "thread_id": "Thread-1", "execution_time": 0.020276784896850586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.844733Z", "completed_at": "2023-01-23T19:36:17.854394Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.859819Z", "completed_at": "2023-01-23T19:36:17.859829Z"}], "thread_id": "Thread-3", "execution_time": 0.018249988555908203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.849582Z", "completed_at": "2023-01-23T19:36:17.859181Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.861178Z", "completed_at": "2023-01-23T19:36:17.861188Z"}], "thread_id": "Thread-4", "execution_time": 0.018286943435668945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.854302Z", "completed_at": "2023-01-23T19:36:17.860475Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.862667Z", "completed_at": "2023-01-23T19:36:17.862673Z"}], "thread_id": "Thread-2", "execution_time": 0.023416996002197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.862568Z", "completed_at": "2023-01-23T19:36:17.869765Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.877358Z", "completed_at": "2023-01-23T19:36:17.877369Z"}], "thread_id": "Thread-1", "execution_time": 0.022462129592895508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.869660Z", "completed_at": "2023-01-23T19:36:17.881934Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.887102Z", "completed_at": "2023-01-23T19:36:17.887110Z"}], "thread_id": "Thread-3", "execution_time": 0.025423765182495117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.876926Z", "completed_at": "2023-01-23T19:36:17.886768Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.888661Z", "completed_at": "2023-01-23T19:36:17.888666Z"}], "thread_id": "Thread-4", "execution_time": 0.02064204216003418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.882151Z", "completed_at": "2023-01-23T19:36:17.888448Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.889843Z", "completed_at": "2023-01-23T19:36:17.889847Z"}], "thread_id": "Thread-2", "execution_time": 0.02452397346496582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.889112Z", "completed_at": "2023-01-23T19:36:17.895546Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.900996Z", "completed_at": "2023-01-23T19:36:17.901003Z"}], "thread_id": "Thread-1", "execution_time": 0.018273115158081055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.895195Z", "completed_at": "2023-01-23T19:36:17.904908Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.911234Z", "completed_at": "2023-01-23T19:36:17.911243Z"}], "thread_id": "Thread-3", "execution_time": 0.022875308990478516, "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": "2023-01-23T19:36:17.900730Z", "completed_at": "2023-01-23T19:36:17.910755Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.912794Z", "completed_at": "2023-01-23T19:36:17.912801Z"}], "thread_id": "Thread-4", "execution_time": 0.018795013427734375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.905126Z", "completed_at": "2023-01-23T19:36:17.912651Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.914177Z", "completed_at": "2023-01-23T19:36:17.914182Z"}], "thread_id": "Thread-2", "execution_time": 0.01982283592224121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.913794Z", "completed_at": "2023-01-23T19:36:17.921608Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.931381Z", "completed_at": "2023-01-23T19:36:17.931390Z"}], "thread_id": "Thread-1", "execution_time": 0.020453214645385742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.920902Z", "completed_at": "2023-01-23T19:36:17.931487Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.936914Z", "completed_at": "2023-01-23T19:36:17.936922Z"}], "thread_id": "Thread-3", "execution_time": 0.02414107322692871, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.926308Z", "completed_at": "2023-01-23T19:36:17.932550Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.938264Z", "completed_at": "2023-01-23T19:36:17.938274Z"}], "thread_id": "Thread-4", "execution_time": 0.018872976303100586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.931700Z", "completed_at": "2023-01-23T19:36:17.938431Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.940837Z", "completed_at": "2023-01-23T19:36:17.940846Z"}], "thread_id": "Thread-2", "execution_time": 0.021262168884277344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.939544Z", "completed_at": "2023-01-23T19:36:17.948115Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.958435Z", "completed_at": "2023-01-23T19:36:17.958447Z"}], "thread_id": "Thread-1", "execution_time": 0.022030115127563477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.947489Z", "completed_at": "2023-01-23T19:36:17.958268Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.963849Z", "completed_at": "2023-01-23T19:36:17.963866Z"}], "thread_id": "Thread-3", "execution_time": 0.025181293487548828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.952743Z", "completed_at": "2023-01-23T19:36:17.959590Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.965418Z", "completed_at": "2023-01-23T19:36:17.965428Z"}], "thread_id": "Thread-4", "execution_time": 0.019713878631591797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.958728Z", "completed_at": "2023-01-23T19:36:17.965533Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.967236Z", "completed_at": "2023-01-23T19:36:17.967241Z"}], "thread_id": "Thread-2", "execution_time": 0.01694011688232422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.966910Z", "completed_at": "2023-01-23T19:36:17.970356Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.974704Z", "completed_at": "2023-01-23T19:36:17.974712Z"}], "thread_id": "Thread-1", "execution_time": 0.011971712112426758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.970224Z", "completed_at": "2023-01-23T19:36:17.974586Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.977437Z", "completed_at": "2023-01-23T19:36:17.977442Z"}], "thread_id": "Thread-3", "execution_time": 0.013051986694335938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.974096Z", "completed_at": "2023-01-23T19:36:17.977221Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.980170Z", "completed_at": "2023-01-23T19:36:17.980176Z"}], "thread_id": "Thread-4", "execution_time": 0.011825084686279297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bill_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.977332Z", "completed_at": "2023-01-23T19:36:17.980288Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.981881Z", "completed_at": "2023-01-23T19:36:17.981886Z"}], "thread_id": "Thread-2", "execution_time": 0.009996891021728516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bill_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.981597Z", "completed_at": "2023-01-23T19:36:17.984456Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.986852Z", "completed_at": "2023-01-23T19:36:17.986857Z"}], "thread_id": "Thread-1", "execution_time": 0.010335922241210938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bill_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.984367Z", "completed_at": "2023-01-23T19:36:17.986756Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.990510Z", "completed_at": "2023-01-23T19:36:17.990515Z"}], "thread_id": "Thread-3", "execution_time": 0.011197090148925781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.986376Z", "completed_at": "2023-01-23T19:36:17.990343Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.992927Z", "completed_at": "2023-01-23T19:36:17.992931Z"}], "thread_id": "Thread-4", "execution_time": 0.009896039962768555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.990430Z", "completed_at": "2023-01-23T19:36:17.993016Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:17.994236Z", "completed_at": "2023-01-23T19:36:17.994240Z"}], "thread_id": "Thread-2", "execution_time": 0.010284185409545898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.994058Z", "completed_at": "2023-01-23T19:36:17.997066Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.000213Z", "completed_at": "2023-01-23T19:36:18.000221Z"}], "thread_id": "Thread-1", "execution_time": 0.009733200073242188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bundle_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:17.996937Z", "completed_at": "2023-01-23T19:36:18.000116Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.002730Z", "completed_at": "2023-01-23T19:36:18.002734Z"}], "thread_id": "Thread-3", "execution_time": 0.01150202751159668, "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": "2023-01-23T19:36:17.999619Z", "completed_at": "2023-01-23T19:36:18.002565Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.005942Z", "completed_at": "2023-01-23T19:36:18.005958Z"}], "thread_id": "Thread-4", "execution_time": 0.010626077651977539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.002650Z", "completed_at": "2023-01-23T19:36:18.006121Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.007692Z", "completed_at": "2023-01-23T19:36:18.007699Z"}], "thread_id": "Thread-2", "execution_time": 0.011269807815551758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.007418Z", "completed_at": "2023-01-23T19:36:18.011332Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.014084Z", "completed_at": "2023-01-23T19:36:18.014090Z"}], "thread_id": "Thread-1", "execution_time": 0.010325193405151367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.011219Z", "completed_at": "2023-01-23T19:36:18.014000Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.016186Z", "completed_at": "2023-01-23T19:36:18.016190Z"}], "thread_id": "Thread-3", "execution_time": 0.010912895202636719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.013604Z", "completed_at": "2023-01-23T19:36:18.016026Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.018429Z", "completed_at": "2023-01-23T19:36:18.018433Z"}], "thread_id": "Thread-4", "execution_time": 0.00864100456237793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.deposit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.016107Z", "completed_at": "2023-01-23T19:36:18.018512Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.020016Z", "completed_at": "2023-01-23T19:36:18.020031Z"}], "thread_id": "Thread-2", "execution_time": 0.008591890335083008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.deposit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.019664Z", "completed_at": "2023-01-23T19:36:18.022520Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.025837Z", "completed_at": "2023-01-23T19:36:18.025847Z"}], "thread_id": "Thread-1", "execution_time": 0.010184049606323242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.estimate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.022438Z", "completed_at": "2023-01-23T19:36:18.025654Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.028836Z", "completed_at": "2023-01-23T19:36:18.028846Z"}], "thread_id": "Thread-3", "execution_time": 0.012365102767944336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.estimate_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.025201Z", "completed_at": "2023-01-23T19:36:18.028555Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.032331Z", "completed_at": "2023-01-23T19:36:18.032337Z"}], "thread_id": "Thread-4", "execution_time": 0.0112457275390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.invoice_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.028704Z", "completed_at": "2023-01-23T19:36:18.032439Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.033877Z", "completed_at": "2023-01-23T19:36:18.033882Z"}], "thread_id": "Thread-2", "execution_time": 0.010860919952392578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.033622Z", "completed_at": "2023-01-23T19:36:18.036380Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.039078Z", "completed_at": "2023-01-23T19:36:18.039086Z"}], "thread_id": "Thread-1", "execution_time": 0.009244203567504883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.036291Z", "completed_at": "2023-01-23T19:36:18.038976Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.041569Z", "completed_at": "2023-01-23T19:36:18.041575Z"}], "thread_id": "Thread-3", "execution_time": 0.011071920394897461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.invoice_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.038510Z", "completed_at": "2023-01-23T19:36:18.041403Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.045109Z", "completed_at": "2023-01-23T19:36:18.045117Z"}], "thread_id": "Thread-4", "execution_time": 0.010339736938476562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.041490Z", "completed_at": "2023-01-23T19:36:18.045221Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.046906Z", "completed_at": "2023-01-23T19:36:18.046912Z"}], "thread_id": "Thread-2", "execution_time": 0.0108489990234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.046605Z", "completed_at": "2023-01-23T19:36:18.049714Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.052106Z", "completed_at": "2023-01-23T19:36:18.052111Z"}], "thread_id": "Thread-1", "execution_time": 0.009813308715820312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.049624Z", "completed_at": "2023-01-23T19:36:18.052019Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.054818Z", "completed_at": "2023-01-23T19:36:18.054825Z"}], "thread_id": "Thread-3", "execution_time": 0.010998964309692383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.051640Z", "completed_at": "2023-01-23T19:36:18.054607Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.057788Z", "completed_at": "2023-01-23T19:36:18.057793Z"}], "thread_id": "Thread-4", "execution_time": 0.009459972381591797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.054707Z", "completed_at": "2023-01-23T19:36:18.057877Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.059329Z", "completed_at": "2023-01-23T19:36:18.059335Z"}], "thread_id": "Thread-2", "execution_time": 0.011044740676879883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.purchase_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.059115Z", "completed_at": "2023-01-23T19:36:18.063020Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.065915Z", "completed_at": "2023-01-23T19:36:18.065923Z"}], "thread_id": "Thread-1", "execution_time": 0.010247945785522461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.purchase_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.062932Z", "completed_at": "2023-01-23T19:36:18.065828Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.068093Z", "completed_at": "2023-01-23T19:36:18.068097Z"}], "thread_id": "Thread-3", "execution_time": 0.011404037475585938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.065391Z", "completed_at": "2023-01-23T19:36:18.067930Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.070672Z", "completed_at": "2023-01-23T19:36:18.070677Z"}], "thread_id": "Thread-4", "execution_time": 0.009319782257080078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.068014Z", "completed_at": "2023-01-23T19:36:18.070771Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.072410Z", "completed_at": "2023-01-23T19:36:18.072421Z"}], "thread_id": "Thread-2", "execution_time": 0.009575128555297852, "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": "2023-01-23T19:36:18.072216Z", "completed_at": "2023-01-23T19:36:18.075324Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.077687Z", "completed_at": "2023-01-23T19:36:18.077692Z"}], "thread_id": "Thread-1", "execution_time": 0.010947942733764648, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.075233Z", "completed_at": "2023-01-23T19:36:18.077602Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.081736Z", "completed_at": "2023-01-23T19:36:18.081743Z"}], "thread_id": "Thread-3", "execution_time": 0.012253999710083008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.077216Z", "completed_at": "2023-01-23T19:36:18.081528Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.084738Z", "completed_at": "2023-01-23T19:36:18.084745Z"}], "thread_id": "Thread-4", "execution_time": 0.010985136032104492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.081637Z", "completed_at": "2023-01-23T19:36:18.084840Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.086493Z", "completed_at": "2023-01-23T19:36:18.086500Z"}], "thread_id": "Thread-2", "execution_time": 0.011879920959472656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.086087Z", "completed_at": "2023-01-23T19:36:18.089495Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.092265Z", "completed_at": "2023-01-23T19:36:18.092273Z"}], "thread_id": "Thread-1", "execution_time": 0.010003089904785156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.transfer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.089385Z", "completed_at": "2023-01-23T19:36:18.092177Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.094740Z", "completed_at": "2023-01-23T19:36:18.094745Z"}], "thread_id": "Thread-3", "execution_time": 0.012456893920898438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.091768Z", "completed_at": "2023-01-23T19:36:18.094534Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.098824Z", "completed_at": "2023-01-23T19:36:18.098834Z"}], "thread_id": "Thread-4", "execution_time": 0.011092185974121094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.094646Z", "completed_at": "2023-01-23T19:36:18.098938Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:18.100515Z", "completed_at": "2023-01-23T19:36:18.100523Z"}], "thread_id": "Thread-2", "execution_time": 0.018132925033569336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.100285Z", "completed_at": "2023-01-23T19:36:19.201574Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:19.202322Z", "completed_at": "2023-01-23T19:36:19.202326Z"}], "thread_id": "Thread-1", "execution_time": 1.1878950595855713, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.117925Z", "completed_at": "2023-01-23T19:36:19.201256Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:19.202152Z", "completed_at": "2023-01-23T19:36:19.202162Z"}], "thread_id": "Thread-4", "execution_time": 1.1806352138519287, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.110264Z", "completed_at": "2023-01-23T19:36:19.201666Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:19.202405Z", "completed_at": "2023-01-23T19:36:19.202407Z"}], "thread_id": "Thread-3", "execution_time": 1.1872291564941406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:18.160723Z", "completed_at": "2023-01-23T19:36:19.201463Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:19.202241Z", "completed_at": "2023-01-23T19:36:19.202244Z"}], "thread_id": "Thread-2", "execution_time": 1.1692900657653809, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:19.290405Z", "completed_at": "2023-01-23T19:36:20.398334Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:20.399209Z", "completed_at": "2023-01-23T19:36:20.399216Z"}], "thread_id": "Thread-4", "execution_time": 1.199549913406372, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:19.290319Z", "completed_at": "2023-01-23T19:36:20.397221Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:20.398061Z", "completed_at": "2023-01-23T19:36:20.398069Z"}], "thread_id": "Thread-1", "execution_time": 1.200882911682129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:19.290477Z", "completed_at": "2023-01-23T19:36:20.397741Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:20.398671Z", "completed_at": "2023-01-23T19:36:20.398691Z"}], "thread_id": "Thread-3", "execution_time": 1.2009053230285645, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:19.290552Z", "completed_at": "2023-01-23T19:36:20.396911Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:20.397345Z", "completed_at": "2023-01-23T19:36:20.397356Z"}], "thread_id": "Thread-2", "execution_time": 1.2014527320861816, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:20.501244Z", "completed_at": "2023-01-23T19:36:21.488138Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:21.488602Z", "completed_at": "2023-01-23T19:36:21.488616Z"}], "thread_id": "Thread-3", "execution_time": 1.077455759048462, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:20.493433Z", "completed_at": "2023-01-23T19:36:21.488472Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:21.489229Z", "completed_at": "2023-01-23T19:36:21.489237Z"}], "thread_id": "Thread-4", "execution_time": 1.1084229946136475, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:20.501150Z", "completed_at": "2023-01-23T19:36:21.488696Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:21.489397Z", "completed_at": "2023-01-23T19:36:21.489402Z"}], "thread_id": "Thread-1", "execution_time": 1.1072101593017578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:20.501428Z", "completed_at": "2023-01-23T19:36:21.488764Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:21.489499Z", "completed_at": "2023-01-23T19:36:21.489503Z"}], "thread_id": "Thread-2", "execution_time": 1.1069228649139404, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:21.571431Z", "completed_at": "2023-01-23T19:36:22.482214Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:22.482426Z", "completed_at": "2023-01-23T19:36:22.482434Z"}], "thread_id": "Thread-3", "execution_time": 1.0070371627807617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:21.603412Z", "completed_at": "2023-01-23T19:36:22.517432Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:22.517683Z", "completed_at": "2023-01-23T19:36:22.517691Z"}], "thread_id": "Thread-1", "execution_time": 0.9984321594238281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:21.603325Z", "completed_at": "2023-01-23T19:36:22.540291Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:22.540511Z", "completed_at": "2023-01-23T19:36:22.540517Z"}], "thread_id": "Thread-4", "execution_time": 1.0237600803375244, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:21.603486Z", "completed_at": "2023-01-23T19:36:22.559116Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:22.559315Z", "completed_at": "2023-01-23T19:36:22.559322Z"}], "thread_id": "Thread-2", "execution_time": 1.0398290157318115, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:22.578846Z", "completed_at": "2023-01-23T19:36:23.899296Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:23.899487Z", "completed_at": "2023-01-23T19:36:23.899494Z"}], "thread_id": "Thread-3", "execution_time": 1.4998729228973389, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:22.626275Z", "completed_at": "2023-01-23T19:36:24.078833Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:24.080265Z", "completed_at": "2023-01-23T19:36:24.080276Z"}], "thread_id": "Thread-4", "execution_time": 1.5406842231750488, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:22.643136Z", "completed_at": "2023-01-23T19:36:24.079249Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:24.080547Z", "completed_at": "2023-01-23T19:36:24.080551Z"}], "thread_id": "Thread-2", "execution_time": 1.5335590839385986, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:22.601407Z", "completed_at": "2023-01-23T19:36:24.080026Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:24.080822Z", "completed_at": "2023-01-23T19:36:24.080825Z"}], "thread_id": "Thread-1", "execution_time": 1.5757312774658203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:24.080732Z", "completed_at": "2023-01-23T19:36:25.361563Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:25.361821Z", "completed_at": "2023-01-23T19:36:25.361828Z"}], "thread_id": "Thread-3", "execution_time": 1.367210865020752, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:24.178391Z", "completed_at": "2023-01-23T19:36:25.504607Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:25.505081Z", "completed_at": "2023-01-23T19:36:25.505089Z"}], "thread_id": "Thread-1", "execution_time": 1.4136011600494385, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:24.178306Z", "completed_at": "2023-01-23T19:36:25.504762Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:25.505172Z", "completed_at": "2023-01-23T19:36:25.505176Z"}], "thread_id": "Thread-2", "execution_time": 1.4144108295440674, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:24.167284Z", "completed_at": "2023-01-23T19:36:25.544700Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:25.544915Z", "completed_at": "2023-01-23T19:36:25.544923Z"}], "thread_id": "Thread-4", "execution_time": 1.4666941165924072, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:25.449686Z", "completed_at": "2023-01-23T19:36:26.388377Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:26.388603Z", "completed_at": "2023-01-23T19:36:26.388611Z"}], "thread_id": "Thread-3", "execution_time": 1.033522367477417, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:25.593544Z", "completed_at": "2023-01-23T19:36:26.559665Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:26.559876Z", "completed_at": "2023-01-23T19:36:26.559882Z"}], "thread_id": "Thread-2", "execution_time": 1.0567009449005127, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:25.634342Z", "completed_at": "2023-01-23T19:36:26.560126Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:26.560290Z", "completed_at": "2023-01-23T19:36:26.560294Z"}], "thread_id": "Thread-4", "execution_time": 1.016179084777832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:25.593461Z", "completed_at": "2023-01-23T19:36:26.558765Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:26.559362Z", "completed_at": "2023-01-23T19:36:26.559371Z"}], "thread_id": "Thread-1", "execution_time": 1.057809829711914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:26.484664Z", "completed_at": "2023-01-23T19:36:27.474505Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:27.474723Z", "completed_at": "2023-01-23T19:36:27.474732Z"}], "thread_id": "Thread-3", "execution_time": 1.0790600776672363, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:26.652728Z", "completed_at": "2023-01-23T19:36:27.561752Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:27.561945Z", "completed_at": "2023-01-23T19:36:27.561953Z"}], "thread_id": "Thread-2", "execution_time": 0.9943702220916748, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:26.652813Z", "completed_at": "2023-01-23T19:36:27.625882Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:27.626292Z", "completed_at": "2023-01-23T19:36:27.626300Z"}], "thread_id": "Thread-4", "execution_time": 1.0586869716644287, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:26.652886Z", "completed_at": "2023-01-23T19:36:27.625999Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:27.626381Z", "completed_at": "2023-01-23T19:36:27.626384Z"}], "thread_id": "Thread-1", "execution_time": 1.059704065322876, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:27.563128Z", "completed_at": "2023-01-23T19:36:28.475501Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:28.475731Z", "completed_at": "2023-01-23T19:36:28.475740Z"}], "thread_id": "Thread-3", "execution_time": 1.0134458541870117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:27.646583Z", "completed_at": "2023-01-23T19:36:28.566970Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:28.567163Z", "completed_at": "2023-01-23T19:36:28.567171Z"}], "thread_id": "Thread-2", "execution_time": 1.0837841033935547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:27.713784Z", "completed_at": "2023-01-23T19:36:28.737905Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:28.738722Z", "completed_at": "2023-01-23T19:36:28.738726Z"}], "thread_id": "Thread-4", "execution_time": 1.1097068786621094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:27.723444Z", "completed_at": "2023-01-23T19:36:28.737743Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:28.738609Z", "completed_at": "2023-01-23T19:36:28.738618Z"}], "thread_id": "Thread-1", "execution_time": 1.1090049743652344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:28.576943Z", "completed_at": "2023-01-23T19:36:29.449398Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.449595Z", "completed_at": "2023-01-23T19:36:29.449602Z"}], "thread_id": "Thread-3", "execution_time": 0.9593799114227295, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.538664Z", "completed_at": "2023-01-23T19:36:29.567064Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.567287Z", "completed_at": "2023-01-23T19:36:29.567295Z"}], "thread_id": "Thread-3", "execution_time": 0.030401945114135742, "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": "2023-01-23T19:36:29.568337Z", "completed_at": "2023-01-23T19:36:29.576562Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.576745Z", "completed_at": "2023-01-23T19:36:29.576750Z"}], "thread_id": "Thread-3", "execution_time": 0.009144067764282227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.577616Z", "completed_at": "2023-01-23T19:36:29.586739Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.586944Z", "completed_at": "2023-01-23T19:36:29.586955Z"}], "thread_id": "Thread-3", "execution_time": 0.009986162185668945, "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": "2023-01-23T19:36:29.587964Z", "completed_at": "2023-01-23T19:36:29.593714Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.593902Z", "completed_at": "2023-01-23T19:36:29.593908Z"}], "thread_id": "Thread-3", "execution_time": 0.00665593147277832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.594867Z", "completed_at": "2023-01-23T19:36:29.598705Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.598911Z", "completed_at": "2023-01-23T19:36:29.598917Z"}], "thread_id": "Thread-3", "execution_time": 0.004691123962402344, "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": "2023-01-23T19:36:29.600076Z", "completed_at": "2023-01-23T19:36:29.606419Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.606630Z", "completed_at": "2023-01-23T19:36:29.606638Z"}], "thread_id": "Thread-3", "execution_time": 0.007403850555419922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.623212Z", "completed_at": "2023-01-23T19:36:29.627294Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.627480Z", "completed_at": "2023-01-23T19:36:29.627484Z"}], "thread_id": "Thread-3", "execution_time": 0.020281076431274414, "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": "2023-01-23T19:36:29.628518Z", "completed_at": "2023-01-23T19:36:29.634337Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.634556Z", "completed_at": "2023-01-23T19:36:29.634563Z"}], "thread_id": "Thread-3", "execution_time": 0.0067539215087890625, "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": "2023-01-23T19:36:29.652309Z", "completed_at": "2023-01-23T19:36:29.656305Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.656491Z", "completed_at": "2023-01-23T19:36:29.656498Z"}], "thread_id": "Thread-3", "execution_time": 0.021564006805419922, "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": "2023-01-23T19:36:29.657455Z", "completed_at": "2023-01-23T19:36:29.661895Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.662095Z", "completed_at": "2023-01-23T19:36:29.662101Z"}], "thread_id": "Thread-3", "execution_time": 0.005322933197021484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.663158Z", "completed_at": "2023-01-23T19:36:29.666949Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.667125Z", "completed_at": "2023-01-23T19:36:29.667131Z"}], "thread_id": "Thread-3", "execution_time": 0.004609823226928711, "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": "2023-01-23T19:36:29.668041Z", "completed_at": "2023-01-23T19:36:29.672672Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.672856Z", "completed_at": "2023-01-23T19:36:29.672862Z"}], "thread_id": "Thread-3", "execution_time": 0.0054361820220947266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.673953Z", "completed_at": "2023-01-23T19:36:29.681002Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.681278Z", "completed_at": "2023-01-23T19:36:29.681285Z"}], "thread_id": "Thread-3", "execution_time": 0.008147239685058594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.682518Z", "completed_at": "2023-01-23T19:36:29.686138Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.686321Z", "completed_at": "2023-01-23T19:36:29.686328Z"}], "thread_id": "Thread-3", "execution_time": 0.004540920257568359, "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": "2023-01-23T19:36:29.687489Z", "completed_at": "2023-01-23T19:36:29.691527Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.691727Z", "completed_at": "2023-01-23T19:36:29.691734Z"}], "thread_id": "Thread-3", "execution_time": 0.005059003829956055, "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": "2023-01-23T19:36:29.692778Z", "completed_at": "2023-01-23T19:36:29.696679Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.696868Z", "completed_at": "2023-01-23T19:36:29.696874Z"}], "thread_id": "Thread-3", "execution_time": 0.004774808883666992, "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": "2023-01-23T19:36:29.697793Z", "completed_at": "2023-01-23T19:36:29.702458Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.702636Z", "completed_at": "2023-01-23T19:36:29.702641Z"}], "thread_id": "Thread-3", "execution_time": 0.005477190017700195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.703610Z", "completed_at": "2023-01-23T19:36:29.708770Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.708981Z", "completed_at": "2023-01-23T19:36:29.708989Z"}], "thread_id": "Thread-3", "execution_time": 0.006066799163818359, "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": "2023-01-23T19:36:29.709990Z", "completed_at": "2023-01-23T19:36:29.714262Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.727149Z", "completed_at": "2023-01-23T19:36:29.727159Z"}], "thread_id": "Thread-3", "execution_time": 0.03615880012512207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:28.731362Z", "completed_at": "2023-01-23T19:36:29.626836Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.627026Z", "completed_at": "2023-01-23T19:36:29.627033Z"}], "thread_id": "Thread-2", "execution_time": 1.0166101455688477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.748954Z", "completed_at": "2023-01-23T19:36:29.757550Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.757837Z", "completed_at": "2023-01-23T19:36:29.757844Z"}], "thread_id": "Thread-3", "execution_time": 0.010516881942749023, "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": "2023-01-23T19:36:29.752697Z", "completed_at": "2023-01-23T19:36:29.757745Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.758395Z", "completed_at": "2023-01-23T19:36:29.758399Z"}], "thread_id": "Thread-2", "execution_time": 0.01037287712097168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.759843Z", "completed_at": "2023-01-23T19:36:29.768913Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.769232Z", "completed_at": "2023-01-23T19:36:29.769240Z"}], "thread_id": "Thread-3", "execution_time": 0.010647058486938477, "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": "2023-01-23T19:36:29.764092Z", "completed_at": "2023-01-23T19:36:29.769306Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.770109Z", "completed_at": "2023-01-23T19:36:29.770113Z"}], "thread_id": "Thread-2", "execution_time": 0.01116800308227539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.771074Z", "completed_at": "2023-01-23T19:36:29.779204Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.779397Z", "completed_at": "2023-01-23T19:36:29.779404Z"}], "thread_id": "Thread-3", "execution_time": 0.009521722793579102, "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": "2023-01-23T19:36:29.775109Z", "completed_at": "2023-01-23T19:36:29.779855Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.780460Z", "completed_at": "2023-01-23T19:36:29.780465Z"}], "thread_id": "Thread-2", "execution_time": 0.009666681289672852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.780968Z", "completed_at": "2023-01-23T19:36:29.790782Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.791071Z", "completed_at": "2023-01-23T19:36:29.791078Z"}], "thread_id": "Thread-3", "execution_time": 0.011216878890991211, "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": "2023-01-23T19:36:29.785973Z", "completed_at": "2023-01-23T19:36:29.791538Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.792169Z", "completed_at": "2023-01-23T19:36:29.792174Z"}], "thread_id": "Thread-2", "execution_time": 0.006992816925048828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.792680Z", "completed_at": "2023-01-23T19:36:29.796635Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.801279Z", "completed_at": "2023-01-23T19:36:29.801285Z"}], "thread_id": "Thread-3", "execution_time": 0.009698867797851562, "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": "2023-01-23T19:36:29.796573Z", "completed_at": "2023-01-23T19:36:29.801832Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.802420Z", "completed_at": "2023-01-23T19:36:29.802424Z"}], "thread_id": "Thread-2", "execution_time": 0.006634950637817383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.802504Z", "completed_at": "2023-01-23T19:36:29.806662Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.812627Z", "completed_at": "2023-01-23T19:36:29.812635Z"}], "thread_id": "Thread-3", "execution_time": 0.010994911193847656, "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": "2023-01-23T19:36:29.806604Z", "completed_at": "2023-01-23T19:36:29.813403Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.814086Z", "completed_at": "2023-01-23T19:36:29.814091Z"}], "thread_id": "Thread-2", "execution_time": 0.008253097534179688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.814177Z", "completed_at": "2023-01-23T19:36:29.823016Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.823271Z", "completed_at": "2023-01-23T19:36:29.823279Z"}], "thread_id": "Thread-3", "execution_time": 0.010109901428222656, "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": "2023-01-23T19:36:29.818655Z", "completed_at": "2023-01-23T19:36:29.823350Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.824094Z", "completed_at": "2023-01-23T19:36:29.824098Z"}], "thread_id": "Thread-2", "execution_time": 0.00638580322265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.825045Z", "completed_at": "2023-01-23T19:36:29.833247Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.833619Z", "completed_at": "2023-01-23T19:36:29.833634Z"}], "thread_id": "Thread-3", "execution_time": 0.00989389419555664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.829891Z", "completed_at": "2023-01-23T19:36:29.834275Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.835017Z", "completed_at": "2023-01-23T19:36:29.835022Z"}], "thread_id": "Thread-2", "execution_time": 0.010267019271850586, "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": "2023-01-23T19:36:28.823825Z", "completed_at": "2023-01-23T19:36:29.746722Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.748306Z", "completed_at": "2023-01-23T19:36:29.748312Z"}], "thread_id": "Thread-4", "execution_time": 1.0222241878509521, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:28.823907Z", "completed_at": "2023-01-23T19:36:29.748168Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.749125Z", "completed_at": "2023-01-23T19:36:29.749130Z"}], "thread_id": "Thread-1", "execution_time": 1.0224988460540771, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.835542Z", "completed_at": "2023-01-23T19:36:29.844596Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.845515Z", "completed_at": "2023-01-23T19:36:29.845523Z"}], "thread_id": "Thread-3", "execution_time": 0.01191091537475586, "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": "2023-01-23T19:36:29.841220Z", "completed_at": "2023-01-23T19:36:29.845441Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.847273Z", "completed_at": "2023-01-23T19:36:29.847278Z"}], "thread_id": "Thread-2", "execution_time": 0.007310152053833008, "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": "2023-01-23T19:36:29.848618Z", "completed_at": "2023-01-23T19:36:29.863984Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.868978Z", "completed_at": "2023-01-23T19:36:29.868986Z"}], "thread_id": "Thread-4", "execution_time": 0.022597074508666992, "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": "2023-01-23T19:36:29.848923Z", "completed_at": "2023-01-23T19:36:29.868559Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.869235Z", "completed_at": "2023-01-23T19:36:29.869239Z"}], "thread_id": "Thread-1", "execution_time": 0.022608041763305664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.853890Z", "completed_at": "2023-01-23T19:36:29.868743Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.869735Z", "completed_at": "2023-01-23T19:36:29.869739Z"}], "thread_id": "Thread-3", "execution_time": 0.02240610122680664, "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": "2023-01-23T19:36:29.863730Z", "completed_at": "2023-01-23T19:36:29.869157Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.870781Z", "completed_at": "2023-01-23T19:36:29.870785Z"}], "thread_id": "Thread-2", "execution_time": 0.018064260482788086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.872618Z", "completed_at": "2023-01-23T19:36:29.884761Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.889537Z", "completed_at": "2023-01-23T19:36:29.889544Z"}], "thread_id": "Thread-4", "execution_time": 0.019075870513916016, "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": "2023-01-23T19:36:29.873088Z", "completed_at": "2023-01-23T19:36:29.889017Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.889683Z", "completed_at": "2023-01-23T19:36:29.889688Z"}], "thread_id": "Thread-1", "execution_time": 0.018813133239746094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.876727Z", "completed_at": "2023-01-23T19:36:29.889099Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.889775Z", "completed_at": "2023-01-23T19:36:29.889779Z"}], "thread_id": "Thread-3", "execution_time": 0.018735885620117188, "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": "2023-01-23T19:36:29.884396Z", "completed_at": "2023-01-23T19:36:29.889604Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.891146Z", "completed_at": "2023-01-23T19:36:29.891151Z"}], "thread_id": "Thread-2", "execution_time": 0.019161224365234375, "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": "2023-01-23T19:36:29.893060Z", "completed_at": "2023-01-23T19:36:29.905128Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.908902Z", "completed_at": "2023-01-23T19:36:29.908910Z"}], "thread_id": "Thread-4", "execution_time": 0.017930984497070312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.893409Z", "completed_at": "2023-01-23T19:36:29.908400Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.909050Z", "completed_at": "2023-01-23T19:36:29.909054Z"}], "thread_id": "Thread-1", "execution_time": 0.01774287223815918, "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": "2023-01-23T19:36:29.893488Z", "completed_at": "2023-01-23T19:36:29.908487Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.909136Z", "completed_at": "2023-01-23T19:36:29.909140Z"}], "thread_id": "Thread-3", "execution_time": 0.017796039581298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.904932Z", "completed_at": "2023-01-23T19:36:29.908974Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.910466Z", "completed_at": "2023-01-23T19:36:29.910470Z"}], "thread_id": "Thread-2", "execution_time": 0.018185853958129883, "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": "2023-01-23T19:36:29.912568Z", "completed_at": "2023-01-23T19:36:29.927960Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.931803Z", "completed_at": "2023-01-23T19:36:29.931811Z"}], "thread_id": "Thread-4", "execution_time": 0.02160787582397461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.913223Z", "completed_at": "2023-01-23T19:36:29.928139Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.932019Z", "completed_at": "2023-01-23T19:36:29.932022Z"}], "thread_id": "Thread-1", "execution_time": 0.02144312858581543, "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": "2023-01-23T19:36:29.913312Z", "completed_at": "2023-01-23T19:36:29.931557Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.932629Z", "completed_at": "2023-01-23T19:36:29.932633Z"}], "thread_id": "Thread-3", "execution_time": 0.021771669387817383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.927445Z", "completed_at": "2023-01-23T19:36:29.932093Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.933798Z", "completed_at": "2023-01-23T19:36:29.933802Z"}], "thread_id": "Thread-2", "execution_time": 0.022109031677246094, "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": "2023-01-23T19:36:29.935495Z", "completed_at": "2023-01-23T19:36:29.949650Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.953759Z", "completed_at": "2023-01-23T19:36:29.953772Z"}], "thread_id": "Thread-4", "execution_time": 0.020434141159057617, "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": "2023-01-23T19:36:29.935664Z", "completed_at": "2023-01-23T19:36:29.949900Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.953982Z", "completed_at": "2023-01-23T19:36:29.953985Z"}], "thread_id": "Thread-1", "execution_time": 0.020533084869384766, "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": "2023-01-23T19:36:29.940115Z", "completed_at": "2023-01-23T19:36:29.953853Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.955139Z", "completed_at": "2023-01-23T19:36:29.955143Z"}], "thread_id": "Thread-3", "execution_time": 0.02091073989868164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.949758Z", "completed_at": "2023-01-23T19:36:29.954560Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.956062Z", "completed_at": "2023-01-23T19:36:29.956066Z"}], "thread_id": "Thread-2", "execution_time": 0.021290063858032227, "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": "2023-01-23T19:36:29.957257Z", "completed_at": "2023-01-23T19:36:29.966957Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.976194Z", "completed_at": "2023-01-23T19:36:29.976203Z"}], "thread_id": "Thread-4", "execution_time": 0.021387100219726562, "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": "2023-01-23T19:36:29.957730Z", "completed_at": "2023-01-23T19:36:29.971430Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.976343Z", "completed_at": "2023-01-23T19:36:29.976347Z"}], "thread_id": "Thread-1", "execution_time": 0.02101898193359375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.966694Z", "completed_at": "2023-01-23T19:36:29.976110Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.977408Z", "completed_at": "2023-01-23T19:36:29.977412Z"}], "thread_id": "Thread-3", "execution_time": 0.020745277404785156, "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": "2023-01-23T19:36:29.971336Z", "completed_at": "2023-01-23T19:36:29.977312Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.978803Z", "completed_at": "2023-01-23T19:36:29.978807Z"}], "thread_id": "Thread-2", "execution_time": 0.017024993896484375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.979774Z", "completed_at": "2023-01-23T19:36:29.991764Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.998008Z", "completed_at": "2023-01-23T19:36:29.998020Z"}], "thread_id": "Thread-4", "execution_time": 0.020433902740478516, "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": "2023-01-23T19:36:29.979864Z", "completed_at": "2023-01-23T19:36:29.991837Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.998149Z", "completed_at": "2023-01-23T19:36:29.998154Z"}], "thread_id": "Thread-1", "execution_time": 0.0205080509185791, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:29.988146Z", "completed_at": "2023-01-23T19:36:29.992483Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:29.999220Z", "completed_at": "2023-01-23T19:36:29.999225Z"}], "thread_id": "Thread-3", "execution_time": 0.020444869995117188, "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": "2023-01-23T19:36:29.991956Z", "completed_at": "2023-01-23T19:36:29.999320Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:30.001024Z", "completed_at": "2023-01-23T19:36:30.001029Z"}], "thread_id": "Thread-2", "execution_time": 0.01390528678894043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:30.002114Z", "completed_at": "2023-01-23T19:36:30.056086Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:30.060805Z", "completed_at": "2023-01-23T19:36:30.060815Z"}], "thread_id": "Thread-1", "execution_time": 0.06090283393859863, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:30.001963Z", "completed_at": "2023-01-23T19:36:30.056169Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:30.061007Z", "completed_at": "2023-01-23T19:36:30.061011Z"}], "thread_id": "Thread-4", "execution_time": 0.06190896034240723, "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": "2023-01-23T19:36:30.052224Z", "completed_at": "2023-01-23T19:36:30.056493Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:30.061740Z", "completed_at": "2023-01-23T19:36:30.061749Z"}], "thread_id": "Thread-3", "execution_time": 0.0616450309753418, "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": "2023-01-23T19:36:30.056293Z", "completed_at": "2023-01-23T19:36:30.062329Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:30.064318Z", "completed_at": "2023-01-23T19:36:30.064325Z"}], "thread_id": "Thread-2", "execution_time": 0.01288604736328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:30.065376Z", "completed_at": "2023-01-23T19:36:30.079933Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:30.085098Z", "completed_at": "2023-01-23T19:36:30.085107Z"}], "thread_id": "Thread-1", "execution_time": 0.022277116775512695, "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": "2023-01-23T19:36:30.065560Z", "completed_at": "2023-01-23T19:36:30.080239Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:30.085339Z", "completed_at": "2023-01-23T19:36:30.085344Z"}], "thread_id": "Thread-4", "execution_time": 0.022389650344848633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:30.069694Z", "completed_at": "2023-01-23T19:36:30.080445Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:30.085894Z", "completed_at": "2023-01-23T19:36:30.085898Z"}], "thread_id": "Thread-3", "execution_time": 0.022446870803833008, "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": "2023-01-23T19:36:30.080154Z", "completed_at": "2023-01-23T19:36:30.086490Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:30.087745Z", "completed_at": "2023-01-23T19:36:30.087750Z"}], "thread_id": "Thread-2", "execution_time": 0.012745141983032227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-23T19:36:30.088306Z", "completed_at": "2023-01-23T19:36:30.092175Z"}, {"name": "execute", "started_at": "2023-01-23T19:36:30.092366Z", "completed_at": "2023-01-23T19:36:30.092372Z"}], "thread_id": "Thread-1", "execution_time": 0.0053081512451171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195"}], "elapsed_time": 15.091003894805908, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/avinash.kunnath/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "quiet": false, "no_print": false, "target": "postgres", "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.3.0", "generated_at": "2023-01-24T23:35:10.448729Z", "invocation_id": "bedc06cb-d583-4e90-9e3f-9c4814934009", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.189159Z", "completed_at": "2023-01-24T23:34:59.218734Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.219503Z", "completed_at": "2023-01-24T23:34:59.219522Z"}], "thread_id": "Thread-1", "execution_time": 0.03287911415100098, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.189248Z", "completed_at": "2023-01-24T23:34:59.218937Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.219797Z", "completed_at": "2023-01-24T23:34:59.219802Z"}], "thread_id": "Thread-2", "execution_time": 0.033209800720214844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.189324Z", "completed_at": "2023-01-24T23:34:59.219227Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.220651Z", "completed_at": "2023-01-24T23:34:59.220658Z"}], "thread_id": "Thread-3", "execution_time": 0.03383898735046387, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.189404Z", "completed_at": "2023-01-24T23:34:59.219600Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.221631Z", "completed_at": "2023-01-24T23:34:59.221639Z"}], "thread_id": "Thread-4", "execution_time": 0.03446698188781738, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.224743Z", "completed_at": "2023-01-24T23:34:59.243226Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.243842Z", "completed_at": "2023-01-24T23:34:59.243851Z"}], "thread_id": "Thread-1", "execution_time": 0.021993398666381836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.225209Z", "completed_at": "2023-01-24T23:34:59.243489Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.243958Z", "completed_at": "2023-01-24T23:34:59.243963Z"}], "thread_id": "Thread-2", "execution_time": 0.02130603790283203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.234747Z", "completed_at": "2023-01-24T23:34:59.244040Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.245651Z", "completed_at": "2023-01-24T23:34:59.245656Z"}], "thread_id": "Thread-4", "execution_time": 0.021747827529907227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.230701Z", "completed_at": "2023-01-24T23:34:59.244112Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.245752Z", "completed_at": "2023-01-24T23:34:59.245755Z"}], "thread_id": "Thread-3", "execution_time": 0.022630929946899414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.247751Z", "completed_at": "2023-01-24T23:34:59.265125Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.265801Z", "completed_at": "2023-01-24T23:34:59.265809Z"}], "thread_id": "Thread-2", "execution_time": 0.020271778106689453, "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": "2023-01-24T23:34:59.247663Z", "completed_at": "2023-01-24T23:34:59.265288Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.265902Z", "completed_at": "2023-01-24T23:34:59.265906Z"}], "thread_id": "Thread-1", "execution_time": 0.020914316177368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.257660Z", "completed_at": "2023-01-24T23:34:59.265641Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.266892Z", "completed_at": "2023-01-24T23:34:59.266896Z"}], "thread_id": "Thread-3", "execution_time": 0.019774198532104492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.257393Z", "completed_at": "2023-01-24T23:34:59.265706Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.266985Z", "completed_at": "2023-01-24T23:34:59.266989Z"}], "thread_id": "Thread-4", "execution_time": 0.020373106002807617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.270173Z", "completed_at": "2023-01-24T23:34:59.286777Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.287631Z", "completed_at": "2023-01-24T23:34:59.287641Z"}], "thread_id": "Thread-1", "execution_time": 0.019599199295043945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.270086Z", "completed_at": "2023-01-24T23:34:59.286936Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.287813Z", "completed_at": "2023-01-24T23:34:59.287818Z"}], "thread_id": "Thread-2", "execution_time": 0.02037191390991211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.277980Z", "completed_at": "2023-01-24T23:34:59.287517Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.288874Z", "completed_at": "2023-01-24T23:34:59.288878Z"}], "thread_id": "Thread-3", "execution_time": 0.0201568603515625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.278078Z", "completed_at": "2023-01-24T23:34:59.287722Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.289237Z", "completed_at": "2023-01-24T23:34:59.289240Z"}], "thread_id": "Thread-4", "execution_time": 0.020510196685791016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.291987Z", "completed_at": "2023-01-24T23:34:59.309833Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.310525Z", "completed_at": "2023-01-24T23:34:59.310534Z"}], "thread_id": "Thread-2", "execution_time": 0.02074408531188965, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.291633Z", "completed_at": "2023-01-24T23:34:59.309921Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.310855Z", "completed_at": "2023-01-24T23:34:59.310863Z"}], "thread_id": "Thread-1", "execution_time": 0.02200174331665039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.300399Z", "completed_at": "2023-01-24T23:34:59.310619Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.312306Z", "completed_at": "2023-01-24T23:34:59.312311Z"}], "thread_id": "Thread-4", "execution_time": 0.0214693546295166, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.300145Z", "completed_at": "2023-01-24T23:34:59.310747Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.312400Z", "completed_at": "2023-01-24T23:34:59.312405Z"}], "thread_id": "Thread-3", "execution_time": 0.022181272506713867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.314536Z", "completed_at": "2023-01-24T23:34:59.327363Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.331698Z", "completed_at": "2023-01-24T23:34:59.331706Z"}], "thread_id": "Thread-2", "execution_time": 0.019563913345336914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.315592Z", "completed_at": "2023-01-24T23:34:59.331231Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.331944Z", "completed_at": "2023-01-24T23:34:59.331948Z"}], "thread_id": "Thread-1", "execution_time": 0.019134044647216797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.323809Z", "completed_at": "2023-01-24T23:34:59.331490Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.332524Z", "completed_at": "2023-01-24T23:34:59.332528Z"}], "thread_id": "Thread-4", "execution_time": 0.018883943557739258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.323914Z", "completed_at": "2023-01-24T23:34:59.331772Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.333231Z", "completed_at": "2023-01-24T23:34:59.333235Z"}], "thread_id": "Thread-3", "execution_time": 0.019371986389160156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.335769Z", "completed_at": "2023-01-24T23:34:59.349549Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.353413Z", "completed_at": "2023-01-24T23:34:59.353421Z"}], "thread_id": "Thread-2", "execution_time": 0.02010488510131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.336245Z", "completed_at": "2023-01-24T23:34:59.352929Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.353668Z", "completed_at": "2023-01-24T23:34:59.353672Z"}], "thread_id": "Thread-1", "execution_time": 0.01982593536376953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.341585Z", "completed_at": "2023-01-24T23:34:59.353210Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.354232Z", "completed_at": "2023-01-24T23:34:59.354236Z"}], "thread_id": "Thread-4", "execution_time": 0.019882917404174805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.345453Z", "completed_at": "2023-01-24T23:34:59.353496Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.354922Z", "completed_at": "2023-01-24T23:34:59.354926Z"}], "thread_id": "Thread-3", "execution_time": 0.020159006118774414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.357344Z", "completed_at": "2023-01-24T23:34:59.370762Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.375164Z", "completed_at": "2023-01-24T23:34:59.375173Z"}], "thread_id": "Thread-2", "execution_time": 0.020181894302368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.357791Z", "completed_at": "2023-01-24T23:34:59.374632Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.375330Z", "completed_at": "2023-01-24T23:34:59.375335Z"}], "thread_id": "Thread-1", "execution_time": 0.0198211669921875, "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": "2023-01-24T23:34:59.361821Z", "completed_at": "2023-01-24T23:34:59.375038Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.376344Z", "completed_at": "2023-01-24T23:34:59.376348Z"}], "thread_id": "Thread-4", "execution_time": 0.02018594741821289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.366778Z", "completed_at": "2023-01-24T23:34:59.375246Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.376695Z", "completed_at": "2023-01-24T23:34:59.376698Z"}], "thread_id": "Thread-3", "execution_time": 0.02033829689025879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.378998Z", "completed_at": "2023-01-24T23:34:59.391284Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.396698Z", "completed_at": "2023-01-24T23:34:59.396709Z"}], "thread_id": "Thread-2", "execution_time": 0.0200350284576416, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.379533Z", "completed_at": "2023-01-24T23:34:59.396014Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.396997Z", "completed_at": "2023-01-24T23:34:59.397003Z"}], "thread_id": "Thread-1", "execution_time": 0.020038843154907227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.387208Z", "completed_at": "2023-01-24T23:34:59.396796Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.398503Z", "completed_at": "2023-01-24T23:34:59.398509Z"}], "thread_id": "Thread-4", "execution_time": 0.020714998245239258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.387362Z", "completed_at": "2023-01-24T23:34:59.396882Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.398629Z", "completed_at": "2023-01-24T23:34:59.398632Z"}], "thread_id": "Thread-3", "execution_time": 0.020700931549072266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.401457Z", "completed_at": "2023-01-24T23:34:59.418164Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.418955Z", "completed_at": "2023-01-24T23:34:59.418964Z"}], "thread_id": "Thread-1", "execution_time": 0.01970386505126953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.400824Z", "completed_at": "2023-01-24T23:34:59.418295Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.419078Z", "completed_at": "2023-01-24T23:34:59.419083Z"}], "thread_id": "Thread-2", "execution_time": 0.02117609977722168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.410028Z", "completed_at": "2023-01-24T23:34:59.418796Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.420320Z", "completed_at": "2023-01-24T23:34:59.420325Z"}], "thread_id": "Thread-4", "execution_time": 0.020298004150390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.410123Z", "completed_at": "2023-01-24T23:34:59.418867Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.420428Z", "completed_at": "2023-01-24T23:34:59.420433Z"}], "thread_id": "Thread-3", "execution_time": 0.020395994186401367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.423690Z", "completed_at": "2023-01-24T23:34:59.428458Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.431708Z", "completed_at": "2023-01-24T23:34:59.431719Z"}], "thread_id": "Thread-1", "execution_time": 0.010637044906616211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.423783Z", "completed_at": "2023-01-24T23:34:59.428551Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.431803Z", "completed_at": "2023-01-24T23:34:59.431807Z"}], "thread_id": "Thread-2", "execution_time": 0.010815143585205078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.428270Z", "completed_at": "2023-01-24T23:34:59.431526Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.433095Z", "completed_at": "2023-01-24T23:34:59.433100Z"}], "thread_id": "Thread-4", "execution_time": 0.010710000991821289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bill_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.428370Z", "completed_at": "2023-01-24T23:34:59.431620Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.433187Z", "completed_at": "2023-01-24T23:34:59.433194Z"}], "thread_id": "Thread-3", "execution_time": 0.010767221450805664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bill_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.436177Z", "completed_at": "2023-01-24T23:34:59.440648Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.443837Z", "completed_at": "2023-01-24T23:34:59.443847Z"}], "thread_id": "Thread-1", "execution_time": 0.01011204719543457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bill_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.436278Z", "completed_at": "2023-01-24T23:34:59.440732Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.443924Z", "completed_at": "2023-01-24T23:34:59.443927Z"}], "thread_id": "Thread-2", "execution_time": 0.010159969329833984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.440478Z", "completed_at": "2023-01-24T23:34:59.443680Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.444951Z", "completed_at": "2023-01-24T23:34:59.444955Z"}], "thread_id": "Thread-4", "execution_time": 0.010163068771362305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.440570Z", "completed_at": "2023-01-24T23:34:59.443760Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.445044Z", "completed_at": "2023-01-24T23:34:59.445047Z"}], "thread_id": "Thread-3", "execution_time": 0.010159730911254883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.447782Z", "completed_at": "2023-01-24T23:34:59.451147Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.455915Z", "completed_at": "2023-01-24T23:34:59.455924Z"}], "thread_id": "Thread-1", "execution_time": 0.010411977767944336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bundle_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.447865Z", "completed_at": "2023-01-24T23:34:59.451229Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.456009Z", "completed_at": "2023-01-24T23:34:59.456013Z"}], "thread_id": "Thread-2", "execution_time": 0.010546207427978516, "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": "2023-01-24T23:34:59.450989Z", "completed_at": "2023-01-24T23:34:59.455663Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.457191Z", "completed_at": "2023-01-24T23:34:59.457197Z"}], "thread_id": "Thread-4", "execution_time": 0.010866880416870117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.451071Z", "completed_at": "2023-01-24T23:34:59.455801Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.457297Z", "completed_at": "2023-01-24T23:34:59.457302Z"}], "thread_id": "Thread-3", "execution_time": 0.010953903198242188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.460490Z", "completed_at": "2023-01-24T23:34:59.464477Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.467625Z", "completed_at": "2023-01-24T23:34:59.467631Z"}], "thread_id": "Thread-1", "execution_time": 0.00952911376953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.460578Z", "completed_at": "2023-01-24T23:34:59.464576Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.467709Z", "completed_at": "2023-01-24T23:34:59.467712Z"}], "thread_id": "Thread-2", "execution_time": 0.009389162063598633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.464172Z", "completed_at": "2023-01-24T23:34:59.467466Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.468611Z", "completed_at": "2023-01-24T23:34:59.468614Z"}], "thread_id": "Thread-4", "execution_time": 0.00933074951171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.deposit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.464310Z", "completed_at": "2023-01-24T23:34:59.467546Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.468698Z", "completed_at": "2023-01-24T23:34:59.468701Z"}], "thread_id": "Thread-3", "execution_time": 0.009352922439575195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.deposit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.471191Z", "completed_at": "2023-01-24T23:34:59.475146Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.478182Z", "completed_at": "2023-01-24T23:34:59.478187Z"}], "thread_id": "Thread-1", "execution_time": 0.008986949920654297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.estimate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.471273Z", "completed_at": "2023-01-24T23:34:59.475226Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.478263Z", "completed_at": "2023-01-24T23:34:59.478266Z"}], "thread_id": "Thread-2", "execution_time": 0.009042024612426758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.estimate_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.474986Z", "completed_at": "2023-01-24T23:34:59.478015Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.479129Z", "completed_at": "2023-01-24T23:34:59.479132Z"}], "thread_id": "Thread-4", "execution_time": 0.009087085723876953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.invoice_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.475070Z", "completed_at": "2023-01-24T23:34:59.478105Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.479211Z", "completed_at": "2023-01-24T23:34:59.479214Z"}], "thread_id": "Thread-3", "execution_time": 0.00924992561340332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.481996Z", "completed_at": "2023-01-24T23:34:59.485630Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.489938Z", "completed_at": "2023-01-24T23:34:59.489944Z"}], "thread_id": "Thread-1", "execution_time": 0.010119199752807617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.482083Z", "completed_at": "2023-01-24T23:34:59.485711Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.490023Z", "completed_at": "2023-01-24T23:34:59.490027Z"}], "thread_id": "Thread-2", "execution_time": 0.01019597053527832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.invoice_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.485469Z", "completed_at": "2023-01-24T23:34:59.489772Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.491024Z", "completed_at": "2023-01-24T23:34:59.491028Z"}], "thread_id": "Thread-4", "execution_time": 0.010529041290283203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.485550Z", "completed_at": "2023-01-24T23:34:59.489860Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.491119Z", "completed_at": "2023-01-24T23:34:59.491122Z"}], "thread_id": "Thread-3", "execution_time": 0.010760784149169922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.494540Z", "completed_at": "2023-01-24T23:34:59.498351Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.502447Z", "completed_at": "2023-01-24T23:34:59.502455Z"}], "thread_id": "Thread-1", "execution_time": 0.010284185409545898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.494674Z", "completed_at": "2023-01-24T23:34:59.498441Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.502534Z", "completed_at": "2023-01-24T23:34:59.502538Z"}], "thread_id": "Thread-2", "execution_time": 0.01027989387512207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.498163Z", "completed_at": "2023-01-24T23:34:59.502279Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.503519Z", "completed_at": "2023-01-24T23:34:59.503523Z"}], "thread_id": "Thread-4", "execution_time": 0.010229110717773438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.498261Z", "completed_at": "2023-01-24T23:34:59.502361Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.503605Z", "completed_at": "2023-01-24T23:34:59.503608Z"}], "thread_id": "Thread-3", "execution_time": 0.010263919830322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.purchase_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.506251Z", "completed_at": "2023-01-24T23:34:59.509426Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.512548Z", "completed_at": "2023-01-24T23:34:59.512553Z"}], "thread_id": "Thread-1", "execution_time": 0.008403778076171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.purchase_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.506335Z", "completed_at": "2023-01-24T23:34:59.509507Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.512626Z", "completed_at": "2023-01-24T23:34:59.512629Z"}], "thread_id": "Thread-2", "execution_time": 0.008475780487060547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.509268Z", "completed_at": "2023-01-24T23:34:59.512392Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.513516Z", "completed_at": "2023-01-24T23:34:59.513519Z"}], "thread_id": "Thread-4", "execution_time": 0.008442878723144531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.509349Z", "completed_at": "2023-01-24T23:34:59.512470Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.513600Z", "completed_at": "2023-01-24T23:34:59.513603Z"}], "thread_id": "Thread-3", "execution_time": 0.00850987434387207, "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": "2023-01-24T23:34:59.516379Z", "completed_at": "2023-01-24T23:34:59.519018Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.557194Z", "completed_at": "2023-01-24T23:34:59.557203Z"}], "thread_id": "Thread-1", "execution_time": 0.0444490909576416, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.518851Z", "completed_at": "2023-01-24T23:34:59.555632Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.559339Z", "completed_at": "2023-01-24T23:34:59.559343Z"}], "thread_id": "Thread-2", "execution_time": 0.045089006423950195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.555343Z", "completed_at": "2023-01-24T23:34:59.558744Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.560133Z", "completed_at": "2023-01-24T23:34:59.560137Z"}], "thread_id": "Thread-3", "execution_time": 0.04471707344055176, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.555550Z", "completed_at": "2023-01-24T23:34:59.559255Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.560482Z", "completed_at": "2023-01-24T23:34:59.560485Z"}], "thread_id": "Thread-4", "execution_time": 0.045497894287109375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.561797Z", "completed_at": "2023-01-24T23:34:59.564290Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.568307Z", "completed_at": "2023-01-24T23:34:59.568313Z"}], "thread_id": "Thread-1", "execution_time": 0.009826183319091797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.transfer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.564132Z", "completed_at": "2023-01-24T23:34:59.566128Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.570268Z", "completed_at": "2023-01-24T23:34:59.570272Z"}], "thread_id": "Thread-2", "execution_time": 0.009432792663574219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.565888Z", "completed_at": "2023-01-24T23:34:59.569773Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.570997Z", "completed_at": "2023-01-24T23:34:59.571001Z"}], "thread_id": "Thread-3", "execution_time": 0.009534835815429688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.566055Z", "completed_at": "2023-01-24T23:34:59.570185Z"}, {"name": "execute", "started_at": "2023-01-24T23:34:59.571336Z", "completed_at": "2023-01-24T23:34:59.571340Z"}], "thread_id": "Thread-4", "execution_time": 0.008253097534179688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.572601Z", "completed_at": "2023-01-24T23:35:00.583384Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:00.584124Z", "completed_at": "2023-01-24T23:35:00.584127Z"}], "thread_id": "Thread-1", "execution_time": 1.102963924407959, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.588309Z", "completed_at": "2023-01-24T23:35:00.583178Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:00.584043Z", "completed_at": "2023-01-24T23:35:00.584047Z"}], "thread_id": "Thread-4", "execution_time": 1.0926718711853027, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.588139Z", "completed_at": "2023-01-24T23:35:00.582916Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:00.583879Z", "completed_at": "2023-01-24T23:35:00.583887Z"}], "thread_id": "Thread-3", "execution_time": 1.1019320487976074, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:34:59.582170Z", "completed_at": "2023-01-24T23:35:00.583959Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:00.584607Z", "completed_at": "2023-01-24T23:35:00.584613Z"}], "thread_id": "Thread-2", "execution_time": 1.1222150325775146, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:00.676805Z", "completed_at": "2023-01-24T23:35:01.529041Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:01.529257Z", "completed_at": "2023-01-24T23:35:01.529267Z"}], "thread_id": "Thread-1", "execution_time": 0.9355769157409668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:00.676963Z", "completed_at": "2023-01-24T23:35:01.535768Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:01.535951Z", "completed_at": "2023-01-24T23:35:01.535957Z"}], "thread_id": "Thread-3", "execution_time": 0.9458739757537842, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:00.695996Z", "completed_at": "2023-01-24T23:35:01.575195Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:01.575564Z", "completed_at": "2023-01-24T23:35:01.575568Z"}], "thread_id": "Thread-2", "execution_time": 0.9618790149688721, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:00.676890Z", "completed_at": "2023-01-24T23:35:01.575074Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:01.575474Z", "completed_at": "2023-01-24T23:35:01.575483Z"}], "thread_id": "Thread-4", "execution_time": 0.9818658828735352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:01.612082Z", "completed_at": "2023-01-24T23:35:02.436420Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:02.436622Z", "completed_at": "2023-01-24T23:35:02.436630Z"}], "thread_id": "Thread-1", "execution_time": 0.9115462303161621, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:01.623026Z", "completed_at": "2023-01-24T23:35:02.455593Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:02.455790Z", "completed_at": "2023-01-24T23:35:02.455798Z"}], "thread_id": "Thread-3", "execution_time": 0.9173507690429688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:01.659398Z", "completed_at": "2023-01-24T23:35:02.524878Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:02.530801Z", "completed_at": "2023-01-24T23:35:02.530809Z"}], "thread_id": "Thread-2", "execution_time": 0.9559199810028076, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:01.659488Z", "completed_at": "2023-01-24T23:35:02.524329Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:02.524808Z", "completed_at": "2023-01-24T23:35:02.524814Z"}], "thread_id": "Thread-4", "execution_time": 0.9575090408325195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:02.524712Z", "completed_at": "2023-01-24T23:35:03.364604Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:03.364907Z", "completed_at": "2023-01-24T23:35:03.364921Z"}], "thread_id": "Thread-1", "execution_time": 0.9593212604522705, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:02.541265Z", "completed_at": "2023-01-24T23:35:03.394030Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:03.394243Z", "completed_at": "2023-01-24T23:35:03.394252Z"}], "thread_id": "Thread-3", "execution_time": 0.9884500503540039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:02.617590Z", "completed_at": "2023-01-24T23:35:03.470770Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:03.471081Z", "completed_at": "2023-01-24T23:35:03.471090Z"}], "thread_id": "Thread-2", "execution_time": 0.9400732517242432, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:02.626227Z", "completed_at": "2023-01-24T23:35:03.471339Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:03.471517Z", "completed_at": "2023-01-24T23:35:03.471522Z"}], "thread_id": "Thread-4", "execution_time": 0.946152925491333, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:03.564777Z", "completed_at": "2023-01-24T23:35:04.426682Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:04.426885Z", "completed_at": "2023-01-24T23:35:04.426893Z"}], "thread_id": "Thread-4", "execution_time": 0.949160099029541, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:03.483876Z", "completed_at": "2023-01-24T23:35:04.499138Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:04.499748Z", "completed_at": "2023-01-24T23:35:04.499759Z"}], "thread_id": "Thread-1", "execution_time": 1.1068480014801025, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:03.556290Z", "completed_at": "2023-01-24T23:35:04.499617Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:04.500230Z", "completed_at": "2023-01-24T23:35:04.500235Z"}], "thread_id": "Thread-2", "execution_time": 1.0453321933746338, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:03.529847Z", "completed_at": "2023-01-24T23:35:04.499839Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:04.500390Z", "completed_at": "2023-01-24T23:35:04.500404Z"}], "thread_id": "Thread-3", "execution_time": 1.0721211433410645, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:04.514255Z", "completed_at": "2023-01-24T23:35:05.355509Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:05.355708Z", "completed_at": "2023-01-24T23:35:05.355717Z"}], "thread_id": "Thread-4", "execution_time": 0.9659068584442139, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:04.591342Z", "completed_at": "2023-01-24T23:35:05.494380Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:05.501331Z", "completed_at": "2023-01-24T23:35:05.501340Z"}], "thread_id": "Thread-1", "execution_time": 0.9935319423675537, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:04.603129Z", "completed_at": "2023-01-24T23:35:05.494948Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:05.501770Z", "completed_at": "2023-01-24T23:35:05.501774Z"}], "thread_id": "Thread-2", "execution_time": 0.9922599792480469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:04.603230Z", "completed_at": "2023-01-24T23:35:05.494721Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:05.501600Z", "completed_at": "2023-01-24T23:35:05.501604Z"}], "thread_id": "Thread-3", "execution_time": 0.9924190044403076, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:05.494632Z", "completed_at": "2023-01-24T23:35:06.333897Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:06.334208Z", "completed_at": "2023-01-24T23:35:06.334225Z"}], "thread_id": "Thread-4", "execution_time": 0.9282360076904297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:05.596961Z", "completed_at": "2023-01-24T23:35:06.483734Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:06.484268Z", "completed_at": "2023-01-24T23:35:06.484271Z"}], "thread_id": "Thread-3", "execution_time": 0.9732701778411865, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:05.585554Z", "completed_at": "2023-01-24T23:35:06.483587Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:06.484192Z", "completed_at": "2023-01-24T23:35:06.484195Z"}], "thread_id": "Thread-1", "execution_time": 0.9851369857788086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:05.596879Z", "completed_at": "2023-01-24T23:35:06.483422Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:06.484107Z", "completed_at": "2023-01-24T23:35:06.484115Z"}], "thread_id": "Thread-2", "execution_time": 0.9744760990142822, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:06.423228Z", "completed_at": "2023-01-24T23:35:07.315747Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:07.316403Z", "completed_at": "2023-01-24T23:35:07.316524Z"}], "thread_id": "Thread-4", "execution_time": 0.9796059131622314, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:06.572975Z", "completed_at": "2023-01-24T23:35:07.482782Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:07.483925Z", "completed_at": "2023-01-24T23:35:07.483936Z"}], "thread_id": "Thread-2", "execution_time": 0.9983081817626953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:06.572847Z", "completed_at": "2023-01-24T23:35:07.483193Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:07.484099Z", "completed_at": "2023-01-24T23:35:07.484105Z"}], "thread_id": "Thread-1", "execution_time": 0.9992649555206299, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:06.572647Z", "completed_at": "2023-01-24T23:35:07.468043Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:07.483016Z", "completed_at": "2023-01-24T23:35:07.483031Z"}], "thread_id": "Thread-3", "execution_time": 1.0000896453857422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:07.404860Z", "completed_at": "2023-01-24T23:35:08.317338Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:08.317651Z", "completed_at": "2023-01-24T23:35:08.317661Z"}], "thread_id": "Thread-4", "execution_time": 1.0026841163635254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:07.574979Z", "completed_at": "2023-01-24T23:35:08.592008Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:08.592256Z", "completed_at": "2023-01-24T23:35:08.592270Z"}], "thread_id": "Thread-1", "execution_time": 1.1084632873535156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:07.575122Z", "completed_at": "2023-01-24T23:35:08.805098Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:08.805315Z", "completed_at": "2023-01-24T23:35:08.805324Z"}], "thread_id": "Thread-3", "execution_time": 1.318514108657837, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:07.574830Z", "completed_at": "2023-01-24T23:35:09.380140Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.380602Z", "completed_at": "2023-01-24T23:35:09.380612Z"}], "thread_id": "Thread-2", "execution_time": 1.892674207687378, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:08.407852Z", "completed_at": "2023-01-24T23:35:09.380305Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.380694Z", "completed_at": "2023-01-24T23:35:09.380698Z"}], "thread_id": "Thread-4", "execution_time": 1.0689637660980225, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.477667Z", "completed_at": "2023-01-24T23:35:09.497178Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.497455Z", "completed_at": "2023-01-24T23:35:09.497465Z"}], "thread_id": "Thread-4", "execution_time": 0.02069878578186035, "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": "2023-01-24T23:35:09.498640Z", "completed_at": "2023-01-24T23:35:09.522466Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.522807Z", "completed_at": "2023-01-24T23:35:09.522818Z"}], "thread_id": "Thread-4", "execution_time": 0.025166988372802734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__account_account_id__source_relation.864a4b056a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.524940Z", "completed_at": "2023-01-24T23:35:09.536797Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.537338Z", "completed_at": "2023-01-24T23:35:09.537352Z"}], "thread_id": "Thread-4", "execution_time": 0.013345956802368164, "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": "2023-01-24T23:35:09.538835Z", "completed_at": "2023-01-24T23:35:09.549076Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.549345Z", "completed_at": "2023-01-24T23:35:09.549356Z"}], "thread_id": "Thread-4", "execution_time": 0.01141500473022461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_line_bill_id__index__source_relation.73722b1062"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.550748Z", "completed_at": "2023-01-24T23:35:09.555453Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.555816Z", "completed_at": "2023-01-24T23:35:09.555827Z"}], "thread_id": "Thread-4", "execution_time": 0.006081104278564453, "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": "2023-01-24T23:35:09.559689Z", "completed_at": "2023-01-24T23:35:09.565175Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.565397Z", "completed_at": "2023-01-24T23:35:09.565410Z"}], "thread_id": "Thread-4", "execution_time": 0.00672602653503418, "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": "2023-01-24T23:35:09.566827Z", "completed_at": "2023-01-24T23:35:09.571650Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.571880Z", "completed_at": "2023-01-24T23:35:09.571892Z"}], "thread_id": "Thread-4", "execution_time": 0.006123065948486328, "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": "2023-01-24T23:35:09.574122Z", "completed_at": "2023-01-24T23:35:09.579738Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.580077Z", "completed_at": "2023-01-24T23:35:09.580089Z"}], "thread_id": "Thread-4", "execution_time": 0.00741124153137207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__address_address_id__source_relation.5bc813a014"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.581622Z", "completed_at": "2023-01-24T23:35:09.587670Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.587874Z", "completed_at": "2023-01-24T23:35:09.587883Z"}], "thread_id": "Thread-4", "execution_time": 0.007103919982910156, "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": "2023-01-24T23:35:09.588946Z", "completed_at": "2023-01-24T23:35:09.594524Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.594731Z", "completed_at": "2023-01-24T23:35:09.594741Z"}], "thread_id": "Thread-4", "execution_time": 0.006458282470703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_line_bill_payment_id__index__source_relation.0a7e17967c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.595866Z", "completed_at": "2023-01-24T23:35:09.599857Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.600066Z", "completed_at": "2023-01-24T23:35:09.600076Z"}], "thread_id": "Thread-4", "execution_time": 0.00489497184753418, "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": "2023-01-24T23:35:09.601485Z", "completed_at": "2023-01-24T23:35:09.605860Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.606166Z", "completed_at": "2023-01-24T23:35:09.606175Z"}], "thread_id": "Thread-4", "execution_time": 0.005664825439453125, "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": "2023-01-24T23:35:09.607696Z", "completed_at": "2023-01-24T23:35:09.624328Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.624862Z", "completed_at": "2023-01-24T23:35:09.624874Z"}], "thread_id": "Thread-4", "execution_time": 0.01821279525756836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_bill_id__source_relation.8c08249abf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.626500Z", "completed_at": "2023-01-24T23:35:09.630688Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.630890Z", "completed_at": "2023-01-24T23:35:09.630900Z"}], "thread_id": "Thread-4", "execution_time": 0.005103111267089844, "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": "2023-01-24T23:35:09.632011Z", "completed_at": "2023-01-24T23:35:09.637451Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.637662Z", "completed_at": "2023-01-24T23:35:09.637672Z"}], "thread_id": "Thread-4", "execution_time": 0.006506204605102539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bill_payment_bill_payment_id__source_relation.4b7aafd630"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.639182Z", "completed_at": "2023-01-24T23:35:09.643914Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.644190Z", "completed_at": "2023-01-24T23:35:09.644202Z"}], "thread_id": "Thread-4", "execution_time": 0.006056785583496094, "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": "2023-01-24T23:35:09.645631Z", "completed_at": "2023-01-24T23:35:09.652259Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.652520Z", "completed_at": "2023-01-24T23:35:09.652530Z"}], "thread_id": "Thread-4", "execution_time": 0.007729768753051758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__bundle_bundle_id__source_relation.e241a21ebc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.653840Z", "completed_at": "2023-01-24T23:35:09.671851Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.672262Z", "completed_at": "2023-01-24T23:35:09.672274Z"}], "thread_id": "Thread-4", "execution_time": 0.019412994384765625, "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": "2023-01-24T23:35:09.673884Z", "completed_at": "2023-01-24T23:35:09.679417Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.679721Z", "completed_at": "2023-01-24T23:35:09.679730Z"}], "thread_id": "Thread-4", "execution_time": 0.006700992584228516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_credit_memo_id__source_relation.917f24c5ca"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.681016Z", "completed_at": "2023-01-24T23:35:09.685265Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.685490Z", "completed_at": "2023-01-24T23:35:09.685500Z"}], "thread_id": "Thread-4", "execution_time": 0.005258083343505859, "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": "2023-01-24T23:35:09.686615Z", "completed_at": "2023-01-24T23:35:09.691902Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.692108Z", "completed_at": "2023-01-24T23:35:09.692117Z"}], "thread_id": "Thread-4", "execution_time": 0.006237983703613281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__credit_memo_line_credit_memo_id__index__source_relation.7a43f0e186"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.693517Z", "completed_at": "2023-01-24T23:35:09.707477Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.707845Z", "completed_at": "2023-01-24T23:35:09.707855Z"}], "thread_id": "Thread-4", "execution_time": 0.015329122543334961, "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": "2023-01-24T23:35:08.685697Z", "completed_at": "2023-01-24T23:35:09.624471Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.624968Z", "completed_at": "2023-01-24T23:35:09.624972Z"}], "thread_id": "Thread-1", "execution_time": 1.0254671573638916, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.709899Z", "completed_at": "2023-01-24T23:35:09.717050Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.721452Z", "completed_at": "2023-01-24T23:35:09.721464Z"}], "thread_id": "Thread-4", "execution_time": 0.013035058975219727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__customer_customer_id__source_relation.61cc22a568"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.716882Z", "completed_at": "2023-01-24T23:35:09.722530Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.722976Z", "completed_at": "2023-01-24T23:35:09.722982Z"}], "thread_id": "Thread-1", "execution_time": 0.019128084182739258, "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": "2023-01-24T23:35:09.722879Z", "completed_at": "2023-01-24T23:35:09.730245Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.734643Z", "completed_at": "2023-01-24T23:35:09.734665Z"}], "thread_id": "Thread-4", "execution_time": 0.01295614242553711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_line_deposit_id__index__source_relation.443de63985"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.730355Z", "completed_at": "2023-01-24T23:35:09.735761Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.736439Z", "completed_at": "2023-01-24T23:35:09.736444Z"}], "thread_id": "Thread-1", "execution_time": 0.007164955139160156, "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": "2023-01-24T23:35:09.736532Z", "completed_at": "2023-01-24T23:35:09.743093Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.748369Z", "completed_at": "2023-01-24T23:35:09.748378Z"}], "thread_id": "Thread-4", "execution_time": 0.012934207916259766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__deposit_deposit_id__source_relation.5574d8e908"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.743212Z", "completed_at": "2023-01-24T23:35:09.755748Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.764065Z", "completed_at": "2023-01-24T23:35:09.764078Z"}], "thread_id": "Thread-1", "execution_time": 0.02220892906188965, "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": "2023-01-24T23:35:09.764273Z", "completed_at": "2023-01-24T23:35:09.772405Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.777545Z", "completed_at": "2023-01-24T23:35:09.777557Z"}], "thread_id": "Thread-4", "execution_time": 0.015045881271362305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_bundle_invoice_id__index__invoice_line_index__source_relation.5370e9fcd0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.772641Z", "completed_at": "2023-01-24T23:35:09.779029Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.779425Z", "completed_at": "2023-01-24T23:35:09.779432Z"}], "thread_id": "Thread-1", "execution_time": 0.01343989372253418, "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": "2023-01-24T23:35:09.779335Z", "completed_at": "2023-01-24T23:35:09.786218Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.791608Z", "completed_at": "2023-01-24T23:35:09.791622Z"}], "thread_id": "Thread-4", "execution_time": 0.013319015502929688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_estimate_id__source_relation.412260b882"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.786149Z", "completed_at": "2023-01-24T23:35:09.792821Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.798919Z", "completed_at": "2023-01-24T23:35:09.798935Z"}], "thread_id": "Thread-1", "execution_time": 0.013768911361694336, "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": "2023-01-24T23:35:09.792945Z", "completed_at": "2023-01-24T23:35:09.800249Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.800888Z", "completed_at": "2023-01-24T23:35:09.800897Z"}], "thread_id": "Thread-4", "execution_time": 0.012774944305419922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_line_invoice_id__index__source_relation.99b74bc327"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.800696Z", "completed_at": "2023-01-24T23:35:09.806309Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.807071Z", "completed_at": "2023-01-24T23:35:09.807082Z"}], "thread_id": "Thread-1", "execution_time": 0.013046026229858398, "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": "2023-01-24T23:35:09.806796Z", "completed_at": "2023-01-24T23:35:09.813966Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.818147Z", "completed_at": "2023-01-24T23:35:09.818160Z"}], "thread_id": "Thread-4", "execution_time": 0.01276707649230957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__estimate_line_estimate_id__index__source_relation.cc61ab0953"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.814076Z", "completed_at": "2023-01-24T23:35:09.819232Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.819840Z", "completed_at": "2023-01-24T23:35:09.819846Z"}], "thread_id": "Thread-1", "execution_time": 0.0069179534912109375, "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": "2023-01-24T23:35:09.819956Z", "completed_at": "2023-01-24T23:35:09.831745Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.832138Z", "completed_at": "2023-01-24T23:35:09.832149Z"}], "thread_id": "Thread-4", "execution_time": 0.013202190399169922, "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": "2023-01-24T23:35:09.826708Z", "completed_at": "2023-01-24T23:35:09.833684Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.838070Z", "completed_at": "2023-01-24T23:35:09.838082Z"}], "thread_id": "Thread-1", "execution_time": 0.01232004165649414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__invoice_invoice_id__source_relation.ef51800044"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.833807Z", "completed_at": "2023-01-24T23:35:09.838913Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.839531Z", "completed_at": "2023-01-24T23:35:09.839536Z"}], "thread_id": "Thread-4", "execution_time": 0.0067501068115234375, "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": "2023-01-24T23:35:09.839626Z", "completed_at": "2023-01-24T23:35:09.846474Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.851661Z", "completed_at": "2023-01-24T23:35:09.851676Z"}], "thread_id": "Thread-1", "execution_time": 0.013244867324829102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__item_item_id__source_relation.169465a2a6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.846202Z", "completed_at": "2023-01-24T23:35:09.851839Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.852797Z", "completed_at": "2023-01-24T23:35:09.852804Z"}], "thread_id": "Thread-4", "execution_time": 0.007930994033813477, "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": "2023-01-24T23:35:08.894678Z", "completed_at": "2023-01-24T23:35:09.764979Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.772192Z", "completed_at": "2023-01-24T23:35:09.772202Z"}], "thread_id": "Thread-3", "execution_time": 0.9673430919647217, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.853894Z", "completed_at": "2023-01-24T23:35:09.866746Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.868030Z", "completed_at": "2023-01-24T23:35:09.868037Z"}], "thread_id": "Thread-1", "execution_time": 0.01564812660217285, "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": "2023-01-24T23:35:09.860883Z", "completed_at": "2023-01-24T23:35:09.867933Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.872495Z", "completed_at": "2023-01-24T23:35:09.872502Z"}], "thread_id": "Thread-4", "execution_time": 0.019212007522583008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__journal_entry_line_journal_entry_id__index__source_relation.0cd1d9f232"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.868131Z", "completed_at": "2023-01-24T23:35:09.873822Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.874762Z", "completed_at": "2023-01-24T23:35:09.874770Z"}], "thread_id": "Thread-3", "execution_time": 0.011728048324584961, "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": "2023-01-24T23:35:09.874660Z", "completed_at": "2023-01-24T23:35:09.884745Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.885419Z", "completed_at": "2023-01-24T23:35:09.885433Z"}], "thread_id": "Thread-1", "execution_time": 0.016670942306518555, "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": "2023-01-24T23:35:09.879048Z", "completed_at": "2023-01-24T23:35:09.885332Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.890465Z", "completed_at": "2023-01-24T23:35:09.890473Z"}], "thread_id": "Thread-4", "execution_time": 0.016830921173095703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_line_purchase_id__index__source_relation.a23c661eb5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.885261Z", "completed_at": "2023-01-24T23:35:09.891373Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.892663Z", "completed_at": "2023-01-24T23:35:09.892671Z"}], "thread_id": "Thread-3", "execution_time": 0.008762836456298828, "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": "2023-01-24T23:35:09.892768Z", "completed_at": "2023-01-24T23:35:09.947756Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.948479Z", "completed_at": "2023-01-24T23:35:09.948491Z"}], "thread_id": "Thread-1", "execution_time": 0.06260800361633301, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_line_payment_id__index__source_relation.25be3cf2e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.943191Z", "completed_at": "2023-01-24T23:35:09.948316Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.954413Z", "completed_at": "2023-01-24T23:35:09.954425Z"}], "thread_id": "Thread-4", "execution_time": 0.06284809112548828, "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": "2023-01-24T23:35:09.948187Z", "completed_at": "2023-01-24T23:35:09.954825Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.956726Z", "completed_at": "2023-01-24T23:35:09.956739Z"}], "thread_id": "Thread-3", "execution_time": 0.01052999496459961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__payment_payment_id__source_relation.1998a8282e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.957375Z", "completed_at": "2023-01-24T23:35:09.970174Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.974671Z", "completed_at": "2023-01-24T23:35:09.974683Z"}], "thread_id": "Thread-1", "execution_time": 0.0197908878326416, "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": "2023-01-24T23:35:09.962666Z", "completed_at": "2023-01-24T23:35:09.974503Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.975457Z", "completed_at": "2023-01-24T23:35:09.975464Z"}], "thread_id": "Thread-4", "execution_time": 0.019192934036254883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_line_purchase_order_id__index__source_relation.e47fe7ae13"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.970447Z", "completed_at": "2023-01-24T23:35:09.975606Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.976855Z", "completed_at": "2023-01-24T23:35:09.976860Z"}], "thread_id": "Thread-3", "execution_time": 0.014569997787475586, "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": "2023-01-24T23:35:09.977629Z", "completed_at": "2023-01-24T23:35:09.988408Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.991979Z", "completed_at": "2023-01-24T23:35:09.991989Z"}], "thread_id": "Thread-1", "execution_time": 0.016059160232543945, "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": "2023-01-24T23:35:09.983251Z", "completed_at": "2023-01-24T23:35:09.992129Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.992955Z", "completed_at": "2023-01-24T23:35:09.992959Z"}], "thread_id": "Thread-4", "execution_time": 0.016563892364501953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_purchase_id__source_relation.172340b49e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:09.988556Z", "completed_at": "2023-01-24T23:35:09.992698Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:09.993743Z", "completed_at": "2023-01-24T23:35:09.993747Z"}], "thread_id": "Thread-3", "execution_time": 0.010855913162231445, "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": "2023-01-24T23:35:09.994430Z", "completed_at": "2023-01-24T23:35:10.005798Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.010198Z", "completed_at": "2023-01-24T23:35:10.010210Z"}], "thread_id": "Thread-1", "execution_time": 0.017718076705932617, "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": "2023-01-24T23:35:10.000759Z", "completed_at": "2023-01-24T23:35:10.010323Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.011475Z", "completed_at": "2023-01-24T23:35:10.011482Z"}], "thread_id": "Thread-4", "execution_time": 0.01767706871032715, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__purchase_order_purchase_order_id__source_relation.1ade9ebad8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:10.005984Z", "completed_at": "2023-01-24T23:35:10.011328Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.012470Z", "completed_at": "2023-01-24T23:35:10.012476Z"}], "thread_id": "Thread-3", "execution_time": 0.012861967086791992, "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": "2023-01-24T23:35:10.012719Z", "completed_at": "2023-01-24T23:35:10.018462Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.028478Z", "completed_at": "2023-01-24T23:35:10.028491Z"}], "thread_id": "Thread-1", "execution_time": 0.01737809181213379, "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": "2023-01-24T23:35:10.018171Z", "completed_at": "2023-01-24T23:35:10.028576Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.029494Z", "completed_at": "2023-01-24T23:35:10.029500Z"}], "thread_id": "Thread-4", "execution_time": 0.01682591438293457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_line_refund_id__index__source_relation.614411eb40"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:10.023571Z", "completed_at": "2023-01-24T23:35:10.029230Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.030369Z", "completed_at": "2023-01-24T23:35:10.030375Z"}], "thread_id": "Thread-3", "execution_time": 0.01311635971069336, "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": "2023-01-24T23:35:10.031123Z", "completed_at": "2023-01-24T23:35:10.041503Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.046512Z", "completed_at": "2023-01-24T23:35:10.046522Z"}], "thread_id": "Thread-1", "execution_time": 0.017391204833984375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_line_sales_receipt_id__index__source_relation.20e80dcbd5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:10.037140Z", "completed_at": "2023-01-24T23:35:10.046312Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.047366Z", "completed_at": "2023-01-24T23:35:10.047370Z"}], "thread_id": "Thread-4", "execution_time": 0.016646146774291992, "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": "2023-01-24T23:35:10.041353Z", "completed_at": "2023-01-24T23:35:10.046608Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.047572Z", "completed_at": "2023-01-24T23:35:10.047576Z"}], "thread_id": "Thread-3", "execution_time": 0.012034893035888672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__sales_receipt_sales_receipt_id__source_relation.36bdbcffde"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:10.049953Z", "completed_at": "2023-01-24T23:35:10.063957Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.064326Z", "completed_at": "2023-01-24T23:35:10.064340Z"}], "thread_id": "Thread-1", "execution_time": 0.016611099243164062, "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": "2023-01-24T23:35:10.054590Z", "completed_at": "2023-01-24T23:35:10.064908Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.065844Z", "completed_at": "2023-01-24T23:35:10.065850Z"}], "thread_id": "Thread-4", "execution_time": 0.0172269344329834, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__refund_receipt_refund_id__source_relation.60f976841d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:10.054776Z", "completed_at": "2023-01-24T23:35:10.065014Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.066010Z", "completed_at": "2023-01-24T23:35:10.066022Z"}], "thread_id": "Thread-3", "execution_time": 0.02212238311767578, "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": "2023-01-24T23:35:10.066296Z", "completed_at": "2023-01-24T23:35:10.073988Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.079154Z", "completed_at": "2023-01-24T23:35:10.079163Z"}], "thread_id": "Thread-1", "execution_time": 0.017312049865722656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_credit_line_vendor_credit_id__index__source_relation.094b35ac4d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:10.074278Z", "completed_at": "2023-01-24T23:35:10.083262Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.084185Z", "completed_at": "2023-01-24T23:35:10.084192Z"}], "thread_id": "Thread-4", "execution_time": 0.01166224479675293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__transfer_transfer_id__source_relation.bfa4c7345e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:10.074474Z", "completed_at": "2023-01-24T23:35:10.083992Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.084818Z", "completed_at": "2023-01-24T23:35:10.084822Z"}], "thread_id": "Thread-3", "execution_time": 0.016476154327392578, "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": "2023-01-24T23:35:10.084359Z", "completed_at": "2023-01-24T23:35:10.090299Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.090472Z", "completed_at": "2023-01-24T23:35:10.090477Z"}], "thread_id": "Thread-1", "execution_time": 0.007311105728149414, "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": "2023-01-24T23:35:09.468256Z", "completed_at": "2023-01-24T23:35:10.345000Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.345205Z", "completed_at": "2023-01-24T23:35:10.345215Z"}], "thread_id": "Thread-2", "execution_time": 0.9612669944763184, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-01-24T23:35:10.430701Z", "completed_at": "2023-01-24T23:35:10.443264Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.443569Z", "completed_at": "2023-01-24T23:35:10.443580Z"}], "thread_id": "Thread-3", "execution_time": 0.01497197151184082, "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": "2023-01-24T23:35:10.430605Z", "completed_at": "2023-01-24T23:35:10.443711Z"}, {"name": "execute", "started_at": "2023-01-24T23:35:10.446278Z", "completed_at": "2023-01-24T23:35:10.446292Z"}], "thread_id": "Thread-4", "execution_time": 0.01744389533996582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.dbt_utils_unique_combination_of_columns_stg_quickbooks__vendor_vendor_id__source_relation.4960d9d21a"}], "elapsed_time": 13.891533851623535, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/avinash.kunnath/.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